@descope/web-components-ui 1.96.0 → 1.97.0
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/cjs/index.cjs.js +8 -4
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/descope-date-field-index-js.js +1 -1
- package/dist/umd/descope-date-field-index-js.js.map +1 -1
- package/package.json +1 -1
- package/src/components/descope-date-field/DateCounterClass.js +4 -1
- package/src/components/descope-date-field/DateFieldClass.js +4 -3
package/dist/cjs/index.cjs.js
CHANGED
@@ -16695,7 +16695,10 @@ class DateCounter {
|
|
16695
16695
|
|
16696
16696
|
data = [...data, num];
|
16697
16697
|
|
16698
|
-
|
16698
|
+
// we need to re-evaluate the number value
|
16699
|
+
const numVal = Number(data.join(''));
|
16700
|
+
|
16701
|
+
if (numVal > this.max) {
|
16699
16702
|
data = [num];
|
16700
16703
|
} else if (this.length < data.length) {
|
16701
16704
|
data = data.slice(1, data.length);
|
@@ -17184,10 +17187,11 @@ class RawDateFieldClass extends BaseInputClass$1 {
|
|
17184
17187
|
|
17185
17188
|
if (!this.inputElement.value) {
|
17186
17189
|
this.inputElement.value = this.format;
|
17187
|
-
// If no value, on focus select the first part of the format placeholder
|
17188
|
-
this.selectedCounterIdx = 0;
|
17189
|
-
this.setInputSelectionRange();
|
17190
17190
|
}
|
17191
|
+
|
17192
|
+
// On focus select the first part of the format placeholder
|
17193
|
+
this.selectedCounterIdx = 0;
|
17194
|
+
this.setInputSelectionRange();
|
17191
17195
|
}
|
17192
17196
|
|
17193
17197
|
onBlur() {
|