Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hiding the selected elements from the dropdown #164

Closed
FrancescoBorzi opened this issue Dec 13, 2017 · 5 comments
Closed

Hiding the selected elements from the dropdown #164

FrancescoBorzi opened this issue Dec 13, 2017 · 5 comments

Comments

@FrancescoBorzi
Copy link

is there a way to hide the already-selected items from the dropdown menu?

@anjmao
Copy link
Member

anjmao commented Dec 13, 2017

Hi @ShinDarth, currently it is not supported, but it would be a nice feature to have a flag like showSelected which is be default true and if setting it to false it will hide multiselect items from drodpwn.

@shyamal890
Copy link

+1

@benjaminlefevre
Copy link
Contributor

I agree, easy to achieve.

I would suggest to not display selected items by defaut (showSelected="false") which makes senses since this is the usual behaviour. Example: http://jedwatson.github.io/react-select/

@shyamal890
Copy link

@anjmao This a must needed feature. Would appreciate your thoughts.

@BagumEpmak
Copy link

While this most expected feature not implemented you can try this ugly workaround in your main css file:
.ng-select-dropdown-outer .ng-select-dropdown .ng-option.selected {
display: none;
}

@varnastadeus varnastadeus assigned varnastadeus and unassigned anjmao Mar 9, 2018
@anjmao anjmao modified the milestones: Version 2.0.0, Version 1.0.0 Mar 13, 2018
varnastadeus added a commit that referenced this issue Mar 15, 2018
jakemdunn pushed a commit to jakemdunn/ng-select that referenced this issue Oct 16, 2018
* feat: allow to hide selected items
closes ng-select#164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants