mui-x
mui-x copied to clipboard
Hiding a column will cause the page to scroll to the bottom
- [x] The issue is present in the latest release.
- [x] I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
When you toggle column visibility from the toolbar, the screen will suddenly jump to the bottom of the page.
Expected Behavior 🤔
It should not jump, and the page should remain anchored.
Steps to Reproduce 🕹
Steps:
- Go to https://material-ui.com/components/data-grid/filtering/#toolbar
- Click on "Columns" in the toolbar
- Toggle one of the columns to be hidden I can reproduce locally as well.
Context 🔦
Your Environment 🌎
`npx @material-ui/envinfo`
Don't forget to mention which browser you used.
Output from `npx @material-ui/envinfo` goes here.
Order id 💳
duplicate #1148
@dtassone GitHub has a very specific matching trigger for labeling duplicates. With the following, the bot, should automatically handle the label. It has to be Duplicate of #xxx to work:

Duplicate of #1148