@descope/web-components-ui 1.0.212 → 1.0.213

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