Skip to content

[BUG] - Select component won't open listbox if list is empty #2422

@MaaitaMohammad

Description

@MaaitaMohammad

Description

The select components uses the listBox components inside it, and the listBox component has hideEmptyContent attribute which controls if the listBox should be shown if the content is empty, I've tried to pass false to the listboxProps attribute of the select component but still clicking on the select component will do nothing.

After going through the select component source code I found this line which controls the clicking behavior and it looks like it forcefully won't open the listBox if the list is empty.

Expected

Being able to control the clicking behavior of the select component when the list is empty.

Suggested

Adding an extra attribute to the select component that gets passed to the useMultiSelect hook to control the clicking behavior.

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