mui-x icon indicating copy to clipboard operation
mui-x copied to clipboard

Hiding a column will cause the page to scroll to the bottom

Open jessq opened this issue 5 years ago • 3 comments

  • [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:

  1. Go to https://material-ui.com/components/data-grid/filtering/#toolbar
  2. Click on "Columns" in the toolbar
  3. 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 💳

jessq avatar Mar 17 '21 06:03 jessq

duplicate #1148

dtassone avatar Mar 17 '21 09:03 dtassone

@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:

Screenshot 2021-03-17 at 11 18 05

oliviertassinari avatar Mar 17 '21 10:03 oliviertassinari

Duplicate of #1148

oliviertassinari avatar Mar 17 '21 10:03 oliviertassinari