@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 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
- if (!disableTrimOnBlur && typeof value === "string") {
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", {