[DataGrid] Page auto scroll to top when we close the open filterpanel #7696
Labels
component: data grid
This is the name of the generic UI component, not the React module!
out of scope
The problem looks valid but we won't fix it (maybe we will revisit it in the future)
Duplicates
Latest version
Steps to reproduce 🕹
Steps:
For live example:
https://codesandbox.io/s/customfilterpanelposition-demo-mui-x-forked-57ftx1
Steps:
filtering.webm
Current behavior 😯
When we open any filterpanel and scroll to bottom and then click it will scroll back to the top again as shown in video
Filtering.webm
Expected behavior 🤔
It should not scroll to the top.
Context 🔦
In my case it is creating issue like when we open the filter and without closing it, we clicked on the rows per page option its changing the position of paper/list (the one which contains list of rows as shown in image) for Rows per page option in DataGrid and make it incorrect, because the page is immediately scrolled to the top while the position of Paper/list is still calculating
Your environment 🌎
npx @mui/envinfo
I am using the chrome broswer
System:
OS: Linux 5.15 Ubuntu 20.04.5 LTS (Focal Fossa)
Binaries:
Node: 18.13.0 - /usr/bin/node
Yarn: Not Found
npm: 8.19.3 - /usr/bin/npm
Browsers:
Chrome: 109.0.5414.74
Firefox: 109.0
npmPackages:
@emotion/react: ^11.8.2 => 11.10.4
@emotion/styled: ^11.8.1 => 11.10.4
@mui/base: ^5.0.0-alpha.75 => 5.0.0-alpha.102
@mui/core-downloads-tracker: 5.10.10
@mui/icons-material: ^5.5.1 => 5.10.9
@mui/lab: ^5.0.0-alpha.74 => 5.0.0-alpha.104
@mui/material: ^5.5.1 => 5.10.10
@mui/private-theming: 5.10.9
@mui/styled-engine: 5.10.8
@mui/styles: ^5.5.1 => 5.10.10
@mui/system: ^5.5.2 => 5.10.10
@mui/types: 7.2.0
@mui/utils: ^5.4.4 => 5.10.9
@mui/x-data-grid: ^5.9.0 => 5.17.7
@mui/x-date-pickers: ^5.0.0-alpha.2 => 5.0.4
@types/react: ^17.0.40 => 17.0.50
react: ^17.0.2 => 17.0.2
react-dom: ^17.0.2 => 17.0.2
typescript: ^4.6.2 => 4.8.4
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: