@bigbinary/neetoui 5.2.40 → 5.2.42
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 +198 -64
- package/index.cjs.js.map +1 -1
- package/index.css +1 -1
- package/index.d.ts +18 -0
- package/index.js +198 -65
- package/index.js.map +1 -1
- package/package.json +1 -1
package/formik.cjs.js
CHANGED
|
@@ -17827,11 +17827,15 @@ var Input$2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
17827
17827
|
onChange(e);
|
|
17828
17828
|
};
|
|
17829
17829
|
var handleChange = rejectCharsRegex ? handleRegexChange : onChange;
|
|
17830
|
+
var handleTrimmedChangeOnBlur = function handleTrimmedChangeOnBlur(e) {
|
|
17831
|
+
if (disableTrimOnBlur || typeof value !== "string") return;
|
|
17832
|
+
var trimmedValue = value.trim();
|
|
17833
|
+
if (value === trimmedValue) return;
|
|
17834
|
+
e.target.value = trimmedValue;
|
|
17835
|
+
handleChange(e);
|
|
17836
|
+
};
|
|
17830
17837
|
var handleOnBlur = function handleOnBlur(e) {
|
|
17831
|
-
|
|
17832
|
-
e.target.value = value.trim();
|
|
17833
|
-
handleChange(e);
|
|
17834
|
-
}
|
|
17838
|
+
handleTrimmedChangeOnBlur(e);
|
|
17835
17839
|
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
17836
17840
|
};
|
|
17837
17841
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|