@descope/web-components-ui 1.91.0 → 1.92.0
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 +3 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -0
- 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 +3 -3
- package/dist/umd/descope-hybrid-field-index-js.js.map +1 -1
- package/package.json +1 -1
- package/src/components/descope-hybrid-field/HybridFieldClass.js +3 -0
package/dist/index.esm.js
CHANGED
@@ -18488,8 +18488,11 @@ class RawHybridField extends BaseClass$2 {
|
|
18488
18488
|
// On reportValidity we want to set the caret at the end of the input value.
|
18489
18489
|
// Since checkValidity triggers `focus` on the input, it sets the caret at the start of the input,
|
18490
18490
|
// regardless the existing value.
|
18491
|
+
const origInputType = ele.type;
|
18492
|
+
ele.setAttribute('type', 'text');
|
18491
18493
|
setTimeout(() => {
|
18492
18494
|
ele.setSelectionRange?.(ele.value.length, ele.value.length);
|
18495
|
+
ele.setAttribute('type', origInputType);
|
18493
18496
|
});
|
18494
18497
|
|
18495
18498
|
return this.activeInput.reportValidity();
|