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

Feature request: Deselect via the dropdown #1651

Open
mweghorst opened this issue Jun 13, 2016 · 5 comments
Open

Feature request: Deselect via the dropdown #1651

mweghorst opened this issue Jun 13, 2016 · 5 comments

Comments

@mweghorst
Copy link

mweghorst commented Jun 13, 2016

When using a multiple select dropdown with the remove-selected option set to false, the selected options in the dropdown list should be clickable and deselect their value, instead of being disabled. This is the same behaviour as in the original select2, see https://select2.github.io/examples.html (Multiple select boxes).

@user378230
Copy link
Contributor

user378230 commented Jun 15, 2016

Can you rephrase as an feature request please? 😃

@mweghorst mweghorst changed the title Deselect via the dropdown Feature request: Deselect via the dropdown Jun 17, 2016
@AndreasIllg
Copy link

Did you work on this? I need this feature as well and hacked my way around it by setting "isTag=true" for each choice (this avoids disabling, you can select it multiple times now) and removing an item if it is selected for the second time (in the "on-select" callback, you can inject $selectMultiple and call $selectMultiple.removeChoice for both).
But that's a hack I would like to get rid of soon. It also produces a flickering since the item appears a second time and is removed immediately.
So is there any progress on this feature?

@user378230
Copy link
Contributor

@AndreasIllg feel free to submit a PR for this feature 😃

@greatromul
Copy link

I will happy when this feature will be added. It would be good, if it was possible to handle deselect event too.

@wellaya
Copy link

wellaya commented Jul 20, 2018

good feature to have

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

No branches or pull requests

5 participants