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

[FeatureRequest] Option to not trigger open on unselect #3838

Closed
althaus opened this issue Oct 16, 2015 · 2 comments
Closed

[FeatureRequest] Option to not trigger open on unselect #3838

althaus opened this issue Oct 16, 2015 · 2 comments

Comments

@althaus
Copy link

althaus commented Oct 16, 2015

Hi,

at the moment there's no simple way to prevent the opening of the dropdown if a user unselects an element on a select. Preventing the unselect triggers the click on the select. With no event handling, you cannot prevent this line:

https://github.com/select2/select2/blob/master/src/js/select2/selection/allowClear.js#L65

We're using select2 for some excessive user<->member<->group handling and the dropdown is bad for the UX, if someone just want's to remove a group membership.

Cheers
Matthias

@kevin-brown
Copy link
Member

This is a duplicate of #3320.

@althaus
Copy link
Author

althaus commented Oct 19, 2015

Sorry for the dupe. Seems my SearchFu was bad on Friday. :(

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

No branches or pull requests

2 participants