@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/cjs/index.cjs.js
CHANGED
@@ -19174,8 +19174,11 @@ class RawHybridField extends BaseClass$3 {
|
|
19174
19174
|
// On reportValidity we want to set the caret at the end of the input value.
|
19175
19175
|
// Since checkValidity triggers `focus` on the input, it sets the caret at the start of the input,
|
19176
19176
|
// regardless the existing value.
|
19177
|
+
const origInputType = ele.type;
|
19178
|
+
ele.setAttribute('type', 'text');
|
19177
19179
|
setTimeout(() => {
|
19178
19180
|
ele.setSelectionRange?.(ele.value.length, ele.value.length);
|
19181
|
+
ele.setAttribute('type', origInputType);
|
19179
19182
|
});
|
19180
19183
|
|
19181
19184
|
return this.activeInput.reportValidity();
|