Skip to content

[Bug]: GroupedList (and grouped DetailsList) do not scrollToIndex() #29169

@spmonahan

Description

@spmonahan

Library

React / v8 (@fluentui/react)

System Info

n/a

Are you reporting Accessibility issue?

no

Reproduction

https://codepen.io/upen_1611/pen/qBLXMPr?editors=0010

Bug Description

Actual Behavior

When scrollToIndex() is called the list does not scroll to the provided index

Expected Behavior

When scrollToIndex() is called the list should be scrolled such that the provided index is visible.

Repro

  1. Go to provided link
  2. Click the "add item button" such that the list becomes taller than the viewport
  3. Note that the list does not scroll

Notes

A similar method, focusIndex() does scroll the row in to view.

Logs

No response

Requested priority

High

Products/sites affected

No response

Are you willing to submit a PR to fix?

yes

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions