You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
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).
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?
Activity
user378230 commentedon Jun 15, 2016
Can you rephrase as an feature request please? 😃
[-]Deselect via the dropdown[/-][+]Feature request: Deselect via the dropdown[/+]AndreasIllg commentedon Aug 16, 2016
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 commentedon Aug 16, 2016
@AndreasIllg feel free to submit a PR for this feature 😃
greatromul commentedon Oct 13, 2016
I will happy when this feature will be added. It would be good, if it was possible to handle deselect event too.
wellaya commentedon Jul 20, 2018
good feature to have