We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82df3a8 commit a8f720bCopy full SHA for a8f720b
packages/uui-base/lib/mixins/FormControlMixin.ts
@@ -216,6 +216,12 @@ export const FormControlMixin = <T extends Constructor<LitElement>>(
216
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/setCustomValidity|HTMLObjectElement:setCustomValidity}
217
*/
218
protected setCustomValidity(message: string) {
219
+ if (message === '') {
220
+ this._internals.setValidity({});
221
+ this.dispatchEvent(new UUIFormControlEvent(UUIFormControlEvent.VALID));
222
+ return;
223
+ }
224
+
225
this._internals.setValidity(
226
{ customError: true },
227
message,
0 commit comments