@descope/web-components-ui 1.0.405 → 1.0.406

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
@@ -1436,10 +1436,14 @@ const inputEventsDispatchingMixin = (superclass) =>
1436
1436
  // we are comparing the previous value to the new one,
1437
1437
  // and if they have the same value, we are blocking the input event
1438
1438
  this.addEventListener('input', (e) => {
1439
- e.stopImmediatePropagation();
1440
- if (previousRootComponentValue !== this.value) {
1441
- previousRootComponentValue = this.value;
1442
- createDispatchEvent.call(this, 'input', { bubbles: true });
1439
+ // We don't want to block our own event that we fire from handleInputEventDispatching
1440
+ if (this !== e.target) {
1441
+ e.stopImmediatePropagation();
1442
+
1443
+ if (previousRootComponentValue !== this.value) {
1444
+ previousRootComponentValue = this.value;
1445
+ createDispatchEvent.call(this, 'input', { bubbles: true, composed: true });
1446
+ }
1443
1447
  }
1444
1448
  });
1445
1449
  }
@@ -8768,7 +8772,6 @@ class PhoneFieldInternal extends BaseInputClass$5 {
8768
8772
  });
8769
8773
 
8770
8774
  this.handleFocusEventsDispatching([this.phoneNumberInput]);
8771
- this.handleInputEventDispatching();
8772
8775
  }
8773
8776
 
8774
8777
  attributeChangedCallback(attrName, oldValue, newValue) {