Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marcopiii opened this issue Feb 13, 2025 · 0 comments
Open

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

marcopiii opened this issue Feb 13, 2025 · 0 comments
Labels
bug Something isn't working triage-needed

Comments

@marcopiii
Copy link
Member

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

@marcopiii marcopiii added bug Something isn't working triage-needed labels Feb 13, 2025
@marcopiii marcopiii changed the title Bug: a SelectField's option with icon undefined crashes the app Bug: a SelectField's option with icon: undefined crashes the app Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage-needed
Projects
None yet
Development

No branches or pull requests

1 participant