Skip to content

Commit

Permalink
fix(input-field): initialize invalid text field as invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
vicgeralds committed May 14, 2024
1 parent 8e5eabf commit bd98e87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/input-field/input-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ export class InputField {
this.mdcTextField.value = this.value;
}

if (this.invalid) {
this.mdcTextField.valid = false;
}

this.mapCompletions();

window.addEventListener('resize', this.layout, { passive: true });
Expand Down

0 comments on commit bd98e87

Please sign in to comment.