ui-select icon indicating copy to clipboard operation
ui-select copied to clipboard

Feature request: Deselect via the dropdown

Open mweghorst opened this issue 8 years ago • 5 comments

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).

mweghorst avatar Jun 13 '16 08:06 mweghorst

Can you rephrase as an feature request please? :smiley:

user378230 avatar Jun 15 '16 10:06 user378230

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 avatar Aug 16 '16 16:08 AndreasIllg

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

user378230 avatar Aug 16 '16 23:08 user378230

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

greatromul avatar Oct 13 '16 12:10 greatromul

good feature to have

wellaya avatar Jul 20 '18 11:07 wellaya