[data grid] Horizontal scrollbar position is not updated after scrollToIndexes #14830
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/eager-satoshi-zvqygs
Setup:
apiRef.current.scrollToIndexes({ colIndex: 1 })
Steps:
Using gestures to scroll right does not reproduce this issue, only mouse click & drag on the scrollbar does
Current behavior
Horizontal scrollbar position is not updated, leaving it in outdated state. Moving the scrollbar after this result is snapping back to initial scroll position
Expected behavior
Horizontal scrollbar position is adjusted after programmatic scroll
Context
Application requires programmatic scrolling to specific columns (in a wide table). This is achievable with current API, but horizontal scroll behavior is bad UX.
Your environment
npx @mui/envinfo
User agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0
Search keywords: scrollbar position scrollToIndexes datagrid
The text was updated successfully, but these errors were encountered: