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

Feature request: Deselect via the dropdown #1651

@mweghorst

Description

@mweghorst

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

Activity

user378230

user378230 commented on Jun 15, 2016

@user378230
Contributor

Can you rephrase as an feature request please? 😃

changed the title [-]Deselect via the dropdown[/-] [+]Feature request: Deselect via the dropdown[/+] on Jun 17, 2016
AndreasIllg

AndreasIllg commented on Aug 16, 2016

@AndreasIllg

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

user378230 commented on Aug 16, 2016

@user378230
Contributor

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

greatromul

greatromul commented on Oct 13, 2016

@greatromul

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

wellaya

wellaya commented on Jul 20, 2018

@wellaya

good feature to have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @wellaya@AndreasIllg@mweghorst@greatromul@user378230

        Issue actions

          Feature request: Deselect via the dropdown · Issue #1651 · angular-ui/ui-select