@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.
@@ -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();