Skip to content

Issues with deselecting in a select component where multiple items can be selected #556

@xelaos

Description

@xelaos

select

What is the reason that the items don't get correctly deselected? The state gets updated which is highlighted by the updates in the dropdown but the items in the input field stay there when they get deselected. As you see in the gif above even the placeholder text comes back behind the items when they are deselected.

I cannot reproduce this outside of my project.

It should work like in the codesandbox below since I used exactly the same code and ant version in my project. All other ant components work fine. I also tried using rc-select instead of its antd variant or using only the example code in my project which is shown in the gif above.

https://codesandbox.io/s/yzcir?file=/index.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions