@descope/web-components-ui 1.0.339 → 1.0.340

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/web-components-ui",
3
- "version": "1.0.339",
3
+ "version": "1.0.340",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -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('');