@pdg/react-form 1.0.69 → 1.0.70
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.
- package/dist/index.esm.js +3 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2664,6 +2664,7 @@ styleInject(css_248z$j);var FormTag = React__default.forwardRef(function (_a, re
|
|
|
2664
2664
|
}, [inputValue, appendTag, onKeyDown]);
|
|
2665
2665
|
var handleInputChange = useCallback(function (value) {
|
|
2666
2666
|
setInputValue(value.replace(/ /g, '').replace(/,/g, ''));
|
|
2667
|
+
setInputValue(value);
|
|
2667
2668
|
}, []);
|
|
2668
2669
|
var handleBlur = useCallback(function (e) {
|
|
2669
2670
|
if (notEmpty(inputValue)) {
|
|
@@ -2703,6 +2704,8 @@ styleInject(css_248z$j);var FormTag = React__default.forwardRef(function (_a, re
|
|
|
2703
2704
|
if (readOnly) {
|
|
2704
2705
|
renderProps.inputProps.className = classNames$1(renderProps.inputProps.className, 'Mui-disabled');
|
|
2705
2706
|
}
|
|
2707
|
+
delete renderProps.inputProps.onChange;
|
|
2708
|
+
delete renderProps.inputProps.value;
|
|
2706
2709
|
return (React__default.createElement(FormText, __assign$7({}, renderProps, { ref: handleRef, name: name, className: classNames$1(className, 'FormValueItem', 'FormTag'), error: error, disabled: disabled, fullWidth: fullWidth, required: required, value: inputValue, exceptValue: exceptValue, helperText: error ? errorHelperText : helperText, onKeyDown: handleInputKeyDown, onChange: handleInputChange, onBlur: handleBlur })));
|
|
2707
2710
|
} })));
|
|
2708
2711
|
});
|