This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(select): Fix empty option stlying issue.
Previously, if you used `ng-value` on your `md-option` and attempted to have an empty option without a value (i.e. `<md-option>Select...</md-option>`), the component would still be in a "has selected value" state causing the floating label to appear among other issues. Add a new `md-option-empty` attribute to `<md-option>` which allows the user to specify the empty option. Additionally, automatically add this attribute for the most common use cases. Update demo/docs to show usage. Fixes #6851. Closes #8907
- Loading branch information
1 parent
87aa4cf
commit fcd42df
Showing
3 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters