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

[data grid] Column menu is force closed on scroll

Open Luis-Sejer opened this issue 8 months ago • 6 comments

Steps to reproduce

Steps:

  1. Open this link to live example: (MUI DataGridPremium)
  2. Open a column menu
  3. scroll on it

https://github.com/user-attachments/assets/a546bac6-7098-4517-a7c1-9332ac07fb6d

Current behavior

It closes

Expected behavior

It should persist (stay open)

Context

I am opening a popper in the column menu where I can add some context to a column (extra description etc etc). In this popper, I have a textfield that, if it exceeds 3 lines, becomes scrollable. However when I scroll, it is force closed, even though I am not trying to scroll on the grid. My mouse is over the column menu / popper

Your environment

see Stackblitz of MuiDataGrid Premium: DataGridPremium API

Search keywords: columnmenu, column menu, popper, scroll

Order ID: 86185

Luis-Sejer avatar May 13 '25 14:05 Luis-Sejer

It seems to be a behavioral regression in v7 of the Data Grid. I agree that the column menu should keep open on scroll; closing it abruptly can disrupt the user experience, especially for individuals relying on assistive technologies. WCAG 2.1 Success Criterion 1.4.13 also mentions it under the "Persistent" clause.

I'll add the issue to the board for further prioritization.

MBilalShafi avatar May 19 '25 21:05 MBilalShafi

Thank you @MBilalShafi !

Luis-Sejer avatar May 20 '25 14:05 Luis-Sejer

@MBilalShafi can I also take a look at this one?

alisasanib avatar May 21 '25 18:05 alisasanib

@alisasanib Go for it 👍 I just wanted to have a second opinion from someone in @mui/xgrid since I'm not fully aware of the context of this regression, but that shouldn't be a blocker for working on the fix.

Feel free to shoot a PR.

MBilalShafi avatar May 21 '25 18:05 MBilalShafi

Hi,

Any update on this topic?

grazielleanna avatar May 27 '25 15:05 grazielleanna

@MBilalShafi I just opened a PR. Would really appreciate it if you could share your feedback/comments about it! Thanks!

alisasanib avatar May 29 '25 19:05 alisasanib

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

[!NOTE] @Luis-Sejer How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

github-actions[bot] avatar Jun 16 '25 07:06 github-actions[bot]