Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DataGrid] Jump while scrolling with a cell selected #5006

Closed
m4theushw opened this issue May 25, 2022 · 1 comment
Closed

[DataGrid] Jump while scrolling with a cell selected #5006

m4theushw opened this issue May 25, 2022 · 1 comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Rendering layout Related to the data grid Rendering engine

Comments

@m4theushw
Copy link
Member

When scrolling the grid while a cell is selected sometimes there's a jump. Here's one taken from https://mui.com/x/react-data-grid/row-grouping/#full-example

Observe the small jumps when I scroll up:

msedge_yFYE9gv6K8.mp4

The same happens with the actions column type but we don't have a demo with many rows to see it. I don't know why it happens. We already use HTMLElement.focus({ preventScroll: true }) but it seems that it still tries to scroll to make the element visible. One thing I noticed is that it only occurs if there's a cell focused so it might be coming from the effect inside the cell. I can't reproduce it in Firefox.

elementToFocus.focus({ preventScroll: true });

Originally posted by @m4theushw in #4208 (comment)

@flaviendelangle flaviendelangle added bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Rendering layout Related to the data grid Rendering engine labels May 25, 2022
@cherniavskii
Copy link
Member

Closed by #6622

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Rendering layout Related to the data grid Rendering engine
Projects
None yet
Development

No branches or pull requests

3 participants