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

feat: support grouped options with CreatableSelect (fixes flattenGroupedChildren) #130

Merged
merged 2 commits into from
Jan 28, 2024

Conversation

kevingyang
Copy link
Collaborator

Fixes #117

Previously, grouped options broke MenuList because the flattenGroupedChildren helper assumes that all children occur in groups.
However, with CreatableSelect, the "Create ..." option occurs outside of a group, as a lone Select option.

This PR introduces a typecheck and correct handling for this case, and also adds a working (and verifiable) grouped option to the Storybook story for CreatableSelect.

@jacobworrel jacobworrel merged commit 769d13a into jacobworrel:master Jan 28, 2024
8 checks passed
@jacobworrel
Copy link
Owner

published via 5.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Getting script error when using with creatable with grouping
2 participants