Skip to content
Discussion options

You must be logged in to vote

@iron-man14 I've looked into this a bit and there are two issues at work. One is a bug in scrollToIndex() when used with grouped DetailsList (or GroupedList). The other relates to List's rendering behavior (List being the control that DetailsList and GroupedList use under the hood to render lists).

The bug in scrollToIndex() is that, with grouped lists, each group is actually a List with its own indexes but List.scrollToIndex() only has a concept of a flat list so it does not know to look into sub-Lists. In your example the root list has 10 groups which means the list has 10 indexes so it cannot find index 450.

To address the bug in scrollToIndex() you can use the (in preview, not ready f…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by khmakoto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment