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

@ubirajaralucena

Description

@ubirajaralucena

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions