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

[XGrid] Column reorder glitches when dragging a cell with a link

Open jessq opened this issue 5 years ago • 1 comments

Column reorder should only reorder when you drag the header cell. If a non-header cell has a link, and you drag that link, it triggers the column reorder and the table glitches.

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

Expected Behavior 🤔

Should not reorder columns

Steps to Reproduce 🕹

Go to the example in the documentation: https://material-ui.com/components/data-grid/columns/#column-reorder Click and drag on the "Trader Email" column Watch the table glitch around as the columns reorder

Context 🔦

Customers accidentally dragging columns when they just want to click on a cell and having a poor experience

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 💳

#22665

jessq avatar May 26 '21 21:05 jessq

Duplicate of #1762

oliviertassinari avatar May 30 '21 16:05 oliviertassinari