@antscorp/antsomi-ui 1.3.5-beta.159 → 1.3.5-beta.160

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -111,7 +111,10 @@ export const TemplateSaveAs = props => {
111
111
  // noStyle -> if enable -> make label is hidden (antd 15.12.6 bug)
112
112
  style: { marginBottom: 0 }, shouldUpdate: (prevValues, currentValues) => prevValues.saveOption !== currentValues.saveOption }, ({ getFieldValue, isFieldValidating }) => getFieldValue('saveOption') === saveNewValue ? (React.createElement(Form.Item, { name: "templateName",
113
113
  // noStyle -> if enable -> validateDebounce not work correct (antd 15.12.6 bug)
114
- validateDebounce: 1000, validateTrigger: "onChange", hasFeedback: isFieldValidating('templateName'), validateStatus: "validating", rules: [
114
+ validateDebounce: 1000, validateTrigger: "onChange",
115
+ // hasFeedback={isFieldValidating('templateName')}
116
+ // validateStatus="success"
117
+ rules: [
115
118
  {
116
119
  required: true,
117
120
  message: "This field can't be empty",
@@ -120,12 +123,8 @@ export const TemplateSaveAs = props => {
120
123
  validator: validateName,
121
124
  },
122
125
  ] },
123
- React.createElement(Input
124
- // className="field-input"
125
- , {
126
- // className="field-input"
127
- placeholder: placeholder, maxLength: 255, onBlur: e => handleChangeValue({
128
- templateName: { id: undefined, label: e.target.value },
126
+ React.createElement(Input, { placeholder: placeholder, maxLength: 255, debounce: 1000, onAfterChange: value => handleChangeValue({
127
+ templateName: { id: undefined, label: value },
129
128
  }) }))) : (React.createElement(Form.Item, { name: "templateNameSelect" },
130
129
  React.createElement(Select
131
130
  // className="field-input"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.159",
3
+ "version": "1.3.5-beta.160",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",