@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/cjs/index.cjs.js +8 -4
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/4619.js +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/phone-fields/descope-phone-input-box-field/descope-phone-input-box-internal/PhoneFieldInternalInputBox.js +0 -1
- package/src/mixins/inputEventsDispatchingMixin.js +8 -4
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
|
-
|
1440
|
-
if (
|
1441
|
-
|
1442
|
-
|
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) {
|