@descope/web-components-ui 1.0.339 → 1.0.340
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 +10 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +10 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/4978.js +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/package.json +1 -1
- package/src/mixins/proxyInputMixin.js +10 -0
package/package.json
CHANGED
@@ -137,6 +137,16 @@ const proxyInputMixin =
|
|
137
137
|
}
|
138
138
|
};
|
139
139
|
|
140
|
+
// We want to ensure that `input` events properly cross ShadowDOM boundries
|
141
|
+
// e.g. When we autofill a component's input with 1Password, for instance,
|
142
|
+
// the event is fired without `composed: true` and doesn't our component's
|
143
|
+
// ShadowDOM.
|
144
|
+
this.baseElement.addEventListener('input', (e) => {
|
145
|
+
if (!e.composed) {
|
146
|
+
this.dispatchEvent(new Event('input', { bubbles: true, composed: true }));
|
147
|
+
}
|
148
|
+
});
|
149
|
+
|
140
150
|
triggerValidationEvents.forEach((e) => {
|
141
151
|
this.baseElement?.addEventListener(e, () => {
|
142
152
|
this.inputElement?.setCustomValidity('');
|