@bigbinary/neetoui 5.2.40 → 5.2.41
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/formik.cjs.js +8 -4
- package/formik.cjs.js.map +1 -1
- package/formik.js +8 -4
- package/formik.js.map +1 -1
- package/index.cjs.js +8 -4
- package/index.cjs.js.map +1 -1
- package/index.js +8 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
package/formik.js
CHANGED
|
@@ -17797,11 +17797,15 @@ var Input$2 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
|
17797
17797
|
onChange(e);
|
|
17798
17798
|
};
|
|
17799
17799
|
var handleChange = rejectCharsRegex ? handleRegexChange : onChange;
|
|
17800
|
+
var handleTrimmedChangeOnBlur = function handleTrimmedChangeOnBlur(e) {
|
|
17801
|
+
if (disableTrimOnBlur || typeof value !== "string") return;
|
|
17802
|
+
var trimmedValue = value.trim();
|
|
17803
|
+
if (value === trimmedValue) return;
|
|
17804
|
+
e.target.value = trimmedValue;
|
|
17805
|
+
handleChange(e);
|
|
17806
|
+
};
|
|
17800
17807
|
var handleOnBlur = function handleOnBlur(e) {
|
|
17801
|
-
|
|
17802
|
-
e.target.value = value.trim();
|
|
17803
|
-
handleChange(e);
|
|
17804
|
-
}
|
|
17808
|
+
handleTrimmedChangeOnBlur(e);
|
|
17805
17809
|
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
17806
17810
|
};
|
|
17807
17811
|
return /*#__PURE__*/React__default.createElement("div", {
|