This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Using the "active" class to identify the currently selected item, not to highlight options on hover #706
Closed
Description
Currently, ui-select adds an "active" class to the selected option, BUT as soon as we hover over the other options, those options get this "active" class. – IMO the "active" class shouldn't be used for highlighting.
For my needs I added an extra "selected" class to identify the currently selected item, letting the "active" class for highlighting only. Here is a small plunker http://plnkr.co/edit/oRAsSYcYDxuJcOtM09tb where the "fixSelectedItem" directive does the job.
Metadata
Metadata
Assignees
Labels
No labels