Skip to content

Bug: a SelectField's option with icon: undefined crashes the app #975

Open
@marcopiii

Description

@marcopiii

Description of the bug

The SelectOption used by SelectField has the property icon?: (props: IconProps) => JSX.Element.
If you define an option with icon: undefined, when it gets selected the error "ne.icon is not a function" occurs. It doesn't happen with other components, like Tabs.

Playroom reproduction

A Playroom example with SelectField

A Playroom example with Tabs

Version

0.22.6

What browsers are you seeing the problem on?

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions