@colijnit/corecomponents_v12 260.1.23 → 260.1.24
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/bundles/colijnit-corecomponents_v12.umd.js +5 -1
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/esm2015/lib/components/input-text/input-text.component.js +6 -2
- package/fesm2015/colijnit-corecomponents_v12.js +5 -1
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/package.json +1 -1
|
@@ -6504,7 +6504,11 @@
|
|
|
6504
6504
|
event.preventDefault();
|
|
6505
6505
|
}
|
|
6506
6506
|
}
|
|
6507
|
-
|
|
6507
|
+
var value = String((_a = this.model) !== null && _a !== void 0 ? _a : "");
|
|
6508
|
+
if (this.type === "number" &&
|
|
6509
|
+
this.maxLength > 0 &&
|
|
6510
|
+
value.length >= this.maxLength &&
|
|
6511
|
+
/^\d$/.test(key)) {
|
|
6508
6512
|
event.preventDefault();
|
|
6509
6513
|
}
|
|
6510
6514
|
};
|