md-select is missing md-input-invalid class on its md-input-container when field is blurred
Demo: http://codepen.io/anon/pen/xZvXoM
Reproduce bug:
- Inspect the "Your name" field so you can see the
<md-input-container>. - Focus your cursor into the "Your name" field. Do not type anything, leave it blank.
- Tab to the "Favorite Number" field, but do not open the list and do not select any options. Notice how the parent
<md-input-container>for "Your Name" field is updated with a new class "md-input-invalid".
4. Now hit tab again to leave the "Favorite Number" field. Notice that the <md-input-container> parent of "Favorite Number" is NOT updated with the expected class "md-input-invalid".
Notice (1):
5. If you NOW tab from the "Your name" field into "Favorite Number" field (meaning you tab through the field set a second time)...
6. And you tab again to blur from the "Favorite Number" field, NOW the <md-input-container> parent for "Favorite Number" will be updated with the "md-input-invalid" class.
Notice (2): 7. Refresh the codepen page to clear the form. 8. Click the "Submit" button (do not focus or type into any fields before doing this).
9. Notice that the <input> container manages to display its error message. But <md-select> container fails to display its error message. Likely caused because of the missing "md-input-invalid" class.
Notice (3):
10. When you manage to get the error message to display for the <md-select> container (by tabbing in-and-away two times), the border-bottom on the field remains gray (expected color is red).
It looks like this did not make it into the 1.0.6 release, correct?
@sdesmond nope, still broken.
I updated codepen with 1.1.0-RC and the issues persist: http://codepen.io/anon/pen/jqmPWd
Any progress on this bug?
👍
+1
- 1
This issue is closed as part of our ‘Surge Focus on Material 2' efforts. For details, see our forum posting @ http://bit.ly/1UhZyWs.
Use pattern=".{1,}" instead required to fix it
Use pattern=".{1,}" instead required to fix it
Tested and this issue is now fixed in bower install angular-material#master.