Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Clear value when it is no longer available in the option list #2175

Open
Zelarith opened this issue Feb 12, 2019 · 0 comments
Open

Clear value when it is no longer available in the option list #2175

Zelarith opened this issue Feb 12, 2019 · 0 comments

Comments

@Zelarith
Copy link

Feature request :
If a selected option becomes unavailable, it should be automatically deselected.

That's how it works with a regular "select" : let's say I have a list of 2 values available :
option 1
option 2

By modifying another value in my form, this list of options becomes :
option 2
option 3

If I had option 2 selected, it will still be selected, as it has remained available all along.
If I had option 1 selected, it will be automatically deselected, as it is not a valid value anymore

In ui-select, the auto deselection never happens, so I have to handle it myself.

Versions used :
Angular 1.5.9
UI-Select 0.19.8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant