Skip to content

fix(material/form-field): ensure that focused classes are in sync #31568

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

crisbeto
Copy link
Member

This is something that showed up in some internal tests a while ago. Because we set mat-focused through a host binding while mdc-text-field--focused is set through direct DOM manipulation, nothing guarantees that they'll be in sync and in some internal tests they aren't.

These changes sync both of them up from the same place.

This is something that showed up in some internal tests a while ago. Because we set `mat-focused` through a host binding while `mdc-text-field--focused` is set through direct DOM manipulation, nothing guarantees that they'll be in sync and in some internal tests they aren't.

These changes sync both of them up from the same place.
@crisbeto crisbeto requested a review from a team as a code owner July 20, 2025 07:07
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Jul 20, 2025
@crisbeto crisbeto requested review from adolgachev and andrewseguin and removed request for a team July 20, 2025 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/form-field target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant