Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 55dbfab

Browse files
fix(textfield): update validity style on textfield focus
PiperOrigin-RevId: 534101999
1 parent aa5ac7f commit 55dbfab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/mdc-textfield/foundation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ export class MDCTextFieldFoundation extends MDCFoundation<MDCTextFieldAdapter> {
261261
activateFocus() {
262262
this.isFocused = true;
263263
this.styleFocused(this.isFocused);
264+
this.styleValidity(this.valid);
264265
this.adapter.activateLineRipple();
265266
if (this.adapter.hasLabel()) {
266267
this.notchOutline(this.shouldFloat);

0 commit comments

Comments
 (0)