@colijnit/corecomponents_v12 261.20.10 → 261.20.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.
|
@@ -7823,7 +7823,11 @@ class InputTextComponent extends BaseInputComponent {
|
|
|
7823
7823
|
event.preventDefault();
|
|
7824
7824
|
}
|
|
7825
7825
|
}
|
|
7826
|
-
|
|
7826
|
+
const value = String(this.model ?? "");
|
|
7827
|
+
if (this.type === "number" &&
|
|
7828
|
+
this.maxLength > 0 &&
|
|
7829
|
+
value.length >= this.maxLength &&
|
|
7830
|
+
/^\d$/.test(key)) {
|
|
7827
7831
|
event.preventDefault();
|
|
7828
7832
|
}
|
|
7829
7833
|
}
|