Closed amy-lei closed 3 years ago
@amy-lei Thanks for opening an issue! Would you be interested in submitting a PR - I think your workaround is fine unless there's a noticeable performance lag.
@jacobworrel Just submitted! I'm not sure if there's any tests I could've added.
Thanks - will try to get this reviewed and merged as soon as I can.
@amy-lei This is much better, but the option height is still not calculated correctly when searching for an option with a larger height (see attached screenshot). To reproduce, you can search for "Lorem" in the "long label text" story. Would you be interested in taking a look at this?
Hmm I can try to look into this too.
Thanks @amy-lei ! Let me know if you have any questions.
The options look great on initial load, but when I start searching, it gets a little weird. The example below is from the codesandbox linked in #31 .
On my own branch, I found a workaround by taking
setMeasuredHeight
out of theif
block, but it's at the cost of more rerenders. https://github.com/jacobworrel/react-windowed-select/blob/1f6c52bb3d7e0528af2b53a2eb2e94564ea4585b/src/MenuList.js#L158-L162