ublo-lib 1.12.26 → 1.12.28
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.
|
@@ -95,7 +95,9 @@ function Inner({
|
|
|
95
95
|
options: fieldOptions = [],
|
|
96
96
|
placeholder,
|
|
97
97
|
required,
|
|
98
|
-
autoSizing
|
|
98
|
+
autoSizing,
|
|
99
|
+
min,
|
|
100
|
+
max
|
|
99
101
|
} = field;
|
|
100
102
|
const [options, setOptions] = React.useState(fieldOptions);
|
|
101
103
|
const fieldClasses = classNames(className, {
|
|
@@ -127,7 +129,7 @@ function Inner({
|
|
|
127
129
|
}
|
|
128
130
|
}));
|
|
129
131
|
}, [name, required, setActivated, setData, setValid, type]);
|
|
130
|
-
const props = getProps(type, name, fieldClasses, data, required, placeholder, autoSizing, onChange);
|
|
132
|
+
const props = getProps(type, name, fieldClasses, data, required, placeholder, autoSizing, onChange, min, max);
|
|
131
133
|
const onBlur = e => {
|
|
132
134
|
const {
|
|
133
135
|
value
|
|
@@ -191,7 +193,7 @@ function getTag(type) {
|
|
|
191
193
|
return Input;
|
|
192
194
|
}
|
|
193
195
|
}
|
|
194
|
-
function getProps(type, name, className, data, required, placeholder, autoSizing, onChange) {
|
|
196
|
+
function getProps(type, name, className, data, required, placeholder, autoSizing, onChange, min, max) {
|
|
195
197
|
const commonProps = {
|
|
196
198
|
className,
|
|
197
199
|
value: data[name].value,
|
|
@@ -223,6 +225,8 @@ function getProps(type, name, className, data, required, placeholder, autoSizing
|
|
|
223
225
|
return {
|
|
224
226
|
withInput: true,
|
|
225
227
|
onChange,
|
|
228
|
+
min,
|
|
229
|
+
max,
|
|
226
230
|
...commonProps
|
|
227
231
|
};
|
|
228
232
|
}
|