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 743b502 commit dbd44fcCopy full SHA for dbd44fc
validation-output.ts
@@ -92,6 +92,12 @@ class ValidationOutput extends HTMLElement {
92
}
93
94
#handleInput = () => {
95
+ // The form could be tried to be submitted but failed on other inputs.
96
+ // In this case, our #for target is flagged as "interacted" and gets the :user-invalid state.
97
+ if (this.#for.matches(":user-invalid")) {
98
+ this.#interacted = true;
99
+ }
100
+
101
// User did not interact yet with the input element; this means that :user-invalid state is not applied yet.
102
if (!this.#interacted) {
103
return;
0 commit comments