Skip to content

SingleSelect input does not show empty string as value #245

@ghost

Description

See here:

const hasSelection = selected && typeof selected === 'string'

If you have this kind of option:

<SingleSelectOption value={''} label="None" />

since the empty string is falsey it fails the check and doesn't show the selected value if its value is ''. I would say it should show that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions