jacobworrel / react-windowed-select

An integration of react-window with react-select to efficiently render large lists.
MIT License
142 stars 38 forks source link

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

Closed kevingyang closed 8 months ago

kevingyang commented 9 months ago

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 commented 8 months ago

published via 5.2.0