@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/dist/index.esm.js
CHANGED
@@ -1550,13 +1550,17 @@ const externalInputMixin =
|
|
1550
1550
|
}
|
1551
1551
|
|
1552
1552
|
createExternalInput() {
|
1553
|
-
if (!this.isExternalInput) {
|
1553
|
+
if (!this.isExternalInput || this.isReadOnly || this.isDisabled) {
|
1554
1554
|
return null;
|
1555
1555
|
}
|
1556
1556
|
|
1557
1557
|
// use original input element as reference
|
1558
1558
|
const origInput = this.baseElement.querySelector('input');
|
1559
1559
|
|
1560
|
+
if (!origInput) {
|
1561
|
+
return null;
|
1562
|
+
}
|
1563
|
+
|
1560
1564
|
// to avoid focus loop between external-input and origInput
|
1561
1565
|
// we set origInput's tabindex to -1
|
1562
1566
|
// otherwise, shift-tab will never leave the component focus
|