Skip to content

Select and filtering doesn't apply the filter when giving a different array #313

@FBerthelot

Description

@FBerthelot

Hello ✋

Describe the bug
When sending an new array to the component, the search doesn't work.

You can see it on this screenshot:

Enregistrement de l’écran 2019-12-11 à 15 25 20

To Reproduce
You can reproce the bug here :

https://codesandbox.io/embed/hardcore-hypatia-l5h8l?fontsize=14&hidenavigation=1&theme=dark

All you have to do is to filter in the search input, then select an item. All elements is now displayed in the dropdown even if the search input has still a value.

Expected behavior
When selecting a an element in the dropdown, the elements still need to be filtered.

Possible solution
When dropdown-tree-select are in a "controlled" mode, it should be possible to define the search programatically.
So maybe the solution is to add a props ? 🤔

Thank you 😃

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions