ui-select
ui-select copied to clipboard
Feature request: Deselect via the dropdown
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).
Can you rephrase as an feature request please? :smiley:
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?
@AndreasIllg feel free to submit a PR for this feature 😃
I will happy when this feature will be added. It would be good, if it was possible to handle deselect event too.
good feature to have