@descope/web-components-ui 3.16.2 → 3.16.4
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/cjs/index.cjs.js +11 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +41 -40
- package/src/components/descope-hybrid-field/HybridFieldClass.js +11 -2
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -29010,8 +29010,17 @@ class RawHybridField extends BaseClass$2 {
|
|
|
29010
29010
|
|
|
29011
29011
|
setActiveInputSelectionStart() {
|
|
29012
29012
|
setTimeout(() => {
|
|
29013
|
-
this.activeInputEle
|
|
29014
|
-
|
|
29013
|
+
const ele = this.activeInputEle;
|
|
29014
|
+
ele.focus();
|
|
29015
|
+
// setSelectionRange throws InvalidStateError on input types that do not
|
|
29016
|
+
// support selection (e.g. `email`). The focus handler usually switches
|
|
29017
|
+
// type to `text` first, but that can race with the blur timer or fail
|
|
29018
|
+
// to fire (e.g. background tab). Restoring the caret is best-effort.
|
|
29019
|
+
try {
|
|
29020
|
+
ele.setSelectionRange?.(this.#selectionStart, this.#selectionStart);
|
|
29021
|
+
} catch {
|
|
29022
|
+
/* noop */
|
|
29023
|
+
}
|
|
29015
29024
|
});
|
|
29016
29025
|
}
|
|
29017
29026
|
|