With the react-select library, there was a property called menuShouldScrollIntoView which always scrolled to the currently selected item, when the select was opened by the user. But this does not work for react-windowed-select even though it is being said, that all props are passed right down to the root component.
I've heard, that this is also not possible, since react-window does only render the items that are currently in view. Therefor it is being said, that you could call .scrollToItem() on the VariableSizeList. The issue is, that there is no possibility, as of my knowledge, to get a ref to that list.
Greetings,
Phynae
With the
react-selectlibrary, there was a property calledmenuShouldScrollIntoViewwhich always scrolled to the currently selected item, when the select was opened by the user. But this does not work forreact-windowed-selecteven though it is being said, that all props are passed right down to the root component.I've heard, that this is also not possible, since
react-windowdoes only render the items that are currently in view. Therefor it is being said, that you could call.scrollToItem()on theVariableSizeList. The issue is, that there is no possibility, as of my knowledge, to get a ref to that list.Greetings,
Phynae