You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an autocomplete that adds selected options to a unique selection list. Once a selection is made, I clear the autocomplete trigger and disable the option to make it clear that duplicate selections are not allowed. This causes styling issues because the selected option is now also disabled. It's easy to workaround by deselecting options after their selection event fires, but I'm not so sure selected options in autocomplete should have any special styling.
The text was updated successfully, but these errors were encountered:
willshowell
changed the title
[option] conflicting "disabled" and "selected" styles on hover
[autocomplete] conflicting "disabled" and "selected" styles on option hover
Aug 25, 2017
* Fixes a selected and disabled option in the autocomplete not showing as disabled until it is hovered.
* Fixes the disabled and selected options in `md-select` using the theme color, instead of the disabled color.
* Fixes the disabled state of an option not being passed down to its checkbox.
Fixesangular#6638.
* Fixes a selected and disabled option in the autocomplete not showing as disabled until it is hovered.
* Fixes the disabled and selected options in `md-select` using the theme color, instead of the disabled color.
* Fixes the disabled state of an option not being passed down to its checkbox.
Fixes#6638.
Bug, feature request, or proposal:
Style bug
Expected
One of the styles,
disabled
orselected
, should always take precedence.Current
A selected & disabled autocomplete option will show selected styles until hovered. It then shows the disabled styles.
Reproduction
Shown in autocomplete:
http://plnkr.co/edit/Nbqhx79TpwkqqHhm9HpF?p=preview
Note the different behavior in select:
http://plnkr.co/edit/Z4vDg5v1gcQbsrFToewG?p=preview
Motivation
I have an autocomplete that adds selected options to a unique selection list. Once a selection is made, I clear the autocomplete trigger and disable the option to make it clear that duplicate selections are not allowed. This causes styling issues because the selected option is now also disabled. It's easy to workaround by deselecting options after their selection event fires, but I'm not so sure selected options in autocomplete should have any special styling.
The text was updated successfully, but these errors were encountered: