@descope/web-components-ui 1.0.338 → 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('');
@@ -2611,7 +2621,7 @@ const EmailFieldClass = compose(
2611
2621
  mappings: textFieldMappings,
2612
2622
  }),
2613
2623
  draggableMixin,
2614
- composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
2624
+ composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'], useProxyTargets: true }),
2615
2625
  componentNameValidationMixin,
2616
2626
  customMixin$a
2617
2627
  )(
@@ -3174,7 +3184,7 @@ const TextFieldClass = compose(
3174
3184
  mappings: textFieldMappings,
3175
3185
  }),
3176
3186
  draggableMixin,
3177
- composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
3187
+ composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'], useProxyTargets: true }),
3178
3188
  componentNameValidationMixin,
3179
3189
  customMixin$9
3180
3190
  )(