@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/web-components-ui",
3
- "version": "1.0.398",
3
+ "version": "1.0.399",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -16,13 +16,17 @@ export const externalInputMixin =
16
16
  }
17
17
 
18
18
  createExternalInput() {
19
- if (!this.isExternalInput) {
19
+ if (!this.isExternalInput || this.isReadOnly || this.isDisabled) {
20
20
  return null;
21
21
  }
22
22
 
23
23
  // use original input element as reference
24
24
  const origInput = this.baseElement.querySelector('input');
25
25
 
26
+ if (!origInput) {
27
+ return null;
28
+ }
29
+
26
30
  // to avoid focus loop between external-input and origInput
27
31
  // we set origInput's tabindex to -1
28
32
  // otherwise, shift-tab will never leave the component focus