react-windowed-select icon indicating copy to clipboard operation
react-windowed-select copied to clipboard

Height and multiple option components

Open martinkadlec0 opened this issue 5 years ago • 1 comments

Hey, I have a select that can show multiple different option components. Each type has a different height. Is there a place somewhere where I can get the option object and set height accordingly so it would work with react-window? To simplify, the options could look like

[
{label: 'Foo', value: 'foo', height: 10},
{label: 'Foo', value: 'foo', height: 10},
{label: 'Foo', value: 'foo', height: 20},
{label: 'Foo', value: 'foo', height: 20},
]

martinkadlec0 avatar Mar 04 '20 16:03 martinkadlec0

@martinkadlec0 This is not supported currently but I suggest submitting a PR. Thanks!

jacobworrel avatar Mar 17 '20 19:03 jacobworrel