@descope/web-components-ui 1.0.212 → 1.0.213
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.cjs.js +3 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/1000.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/phone-fields/descope-phone-field/descope-phone-field-internal/PhoneFieldInternal.js +2 -4
- package/src/mixins/proxyInputMixin.js +3 -0
package/dist/cjs/index.cjs.js
CHANGED
@@ -2094,6 +2094,9 @@ const proxyInputMixin =
|
|
2094
2094
|
// We do not want to show the default validity report tooltip
|
2095
2095
|
// So we are overriding the reportValidity fn to show the input's error message
|
2096
2096
|
reportValidity = () => {
|
2097
|
+
// we want to update validity so in case the value was set programmatically, we won't get an error
|
2098
|
+
this.inputElement.setCustomValidity('');
|
2099
|
+
this.setCustomValidity('');
|
2097
2100
|
if (!this.checkValidity()) {
|
2098
2101
|
this.setAttribute('invalid', 'true');
|
2099
2102
|
this.#handleErrorMessage();
|