@colijnit/corecomponents_v12 262.1.0 → 262.1.1
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,6 +7823,9 @@ class InputTextComponent extends BaseInputComponent {
|
|
|
7823
7823
|
event.preventDefault();
|
|
7824
7824
|
}
|
|
7825
7825
|
}
|
|
7826
|
+
if (this.type === 'number' && this.model?.length === this.maxLength && /^\d$/.test(key)) {
|
|
7827
|
+
event.preventDefault();
|
|
7828
|
+
}
|
|
7826
7829
|
}
|
|
7827
7830
|
convertWeekToDate(weekStr) {
|
|
7828
7831
|
const match = weekStr.match(/^w0*(\d{1,2})$/i);
|