@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/dist/index.esm.js CHANGED
@@ -1080,6 +1080,16 @@ const proxyInputMixin =
1080
1080
  }
1081
1081
  };
1082
1082
 
1083
+ // We want to ensure that `input` events properly cross ShadowDOM boundries
1084
+ // e.g. When we autofill a component's input with 1Password, for instance,
1085
+ // the event is fired without `composed: true` and doesn't our component's
1086
+ // ShadowDOM.
1087
+ this.baseElement.addEventListener('input', (e) => {
1088
+ if (!e.composed) {
1089
+ this.dispatchEvent(new Event('input', { bubbles: true, composed: true }));
1090
+ }
1091
+ });
1092
+
1083
1093
  triggerValidationEvents.forEach((e) => {
1084
1094
  this.baseElement?.addEventListener(e, () => {
1085
1095
  this.inputElement?.setCustomValidity('');