Skip to content
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

md-select applying error styles before it is touched. #2147

Closed
blyndcide opened this issue Dec 9, 2016 · 3 comments · Fixed by #2166
Closed

md-select applying error styles before it is touched. #2147

blyndcide opened this issue Dec 9, 2016 · 3 comments · Fixed by #2166
Assignees
Labels
P2 The issue is important to a large percentage of users, with a workaround

Comments

@blyndcide
Copy link

When another control in a form is touched, md-select applies error styles even though it hasn't been touched yet. The classes on md-select remain class="ng-untouched ng-pristine ng-invalid".

@dahaupt
Copy link

dahaupt commented Dec 9, 2016

I've noticed the same problem.

material2 version: 2.0.0-alpha.11-2

@jelbourn jelbourn added the P2 The issue is important to a large percentage of users, with a workaround label Dec 9, 2016
@kara
Copy link
Contributor

kara commented Dec 11, 2016

@blyndcide Thanks for the report! The selector for the invalid styles was too general, so it was picking up when the form was touched as well as its own control. Should be fixed by #2166.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P2 The issue is important to a large percentage of users, with a workaround
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants