@descope/web-components-ui 1.0.398 → 1.0.399

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.
@@ -2770,13 +2770,17 @@ const externalInputMixin =
2770
2770
  }
2771
2771
 
2772
2772
  createExternalInput() {
2773
- if (!this.isExternalInput) {
2773
+ if (!this.isExternalInput || this.isReadOnly || this.isDisabled) {
2774
2774
  return null;
2775
2775
  }
2776
2776
 
2777
2777
  // use original input element as reference
2778
2778
  const origInput = this.baseElement.querySelector('input');
2779
2779
 
2780
+ if (!origInput) {
2781
+ return null;
2782
+ }
2783
+
2780
2784
  // to avoid focus loop between external-input and origInput
2781
2785
  // we set origInput's tabindex to -1
2782
2786
  // otherwise, shift-tab will never leave the component focus