Skip to content

Commit 82df3a8

Browse files
committed
notify about invalid control when using setCustomValidity
1 parent 9eb47b4 commit 82df3a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/uui-base/lib/mixins/FormControlMixin.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ export const FormControlMixin = <T extends Constructor<LitElement>>(
221221
message,
222222
this.getFormElement()
223223
);
224+
225+
this.dispatchEvent(new UUIFormControlEvent(UUIFormControlEvent.INVALID));
224226
}
225227

226228
private _runValidators() {

0 commit comments

Comments
 (0)