@descope/web-components-ui 1.127.0 → 1.129.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/index.esm.js CHANGED
@@ -7187,11 +7187,14 @@ class RawDateFieldClass extends BaseInputClass$b {
7187
7187
  }
7188
7188
 
7189
7189
  set value(val) {
7190
- if (!Number.isNaN(val)) {
7191
- this.updateEpoch(val);
7192
- this.updateDateCounters(newDate(val));
7190
+ let value = parseInt(val, 10);
7191
+ if (!Number.isNaN(value)) {
7192
+ this.updateEpoch(value);
7193
+ this.updateDateCounters(newDate(value));
7193
7194
  } else {
7194
7195
  this.updateEpoch('');
7196
+ this.resetDateCounters();
7197
+ this.clearInputEle();
7195
7198
  }
7196
7199
  }
7197
7200
 
@@ -7491,10 +7494,14 @@ class RawDateFieldClass extends BaseInputClass$b {
7491
7494
  }
7492
7495
 
7493
7496
  if (this.inputElement.value === this.format) {
7494
- this.inputElement.value = '';
7497
+ this.clearInputEle();
7495
7498
  }
7496
7499
  }
7497
7500
 
7501
+ clearInputEle() {
7502
+ this.inputElement.value = '';
7503
+ }
7504
+
7498
7505
  onFormatUpdate(format) {
7499
7506
  if (Object.keys(formats).includes(format)) {
7500
7507
  this.format = format;