Closed tommhuth closed 2 years ago
For anyone finding this: the problem was my ListboxComponent
component on the Mui Autocomplete
not being referentially stable (inline arrow function). Moving the definition out of the render function solved the problem.
Thank you for coming back and posting your solution! It helped me :)
I'm using
react-window
with Mui'sAutocomplete
and it almost works, except for one thing: when a user makes a selection and the select list stays open (via thedisableCloseOnSelect
prop),react-window
scrolls to the top of the list.Is this expected behavior? How can I get my list to stay where it is even when parent rerenders?