mytek-components 2.1.10 → 2.1.11

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/main.es.js CHANGED
@@ -14261,6 +14261,16 @@ const CustomInput = ({
14261
14261
  validate(formatted);
14262
14262
  setAmountInWords(numberToWords(rawValue, format));
14263
14263
  break;
14264
+ case "number":
14265
+ val = val.replace(/\D/g, "");
14266
+ if (maxLength) {
14267
+ val = val.slice(0, maxLength);
14268
+ }
14269
+ onChange(name, val);
14270
+ if (minLength && val.length < minLength) {
14271
+ validate(val);
14272
+ }
14273
+ break;
14264
14274
  case "number1":
14265
14275
  val = val.replace(/\D/g, "").slice(4, 8);
14266
14276
  onChange(name, val);