Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[data grid] Filtering on non filterable columns yield weird behavior #11527

Closed
MBilalShafi opened this issue Dec 28, 2023 · 0 comments · Fixed by #11538
Closed

[data grid] Filtering on non filterable columns yield weird behavior #11527

MBilalShafi opened this issue Dec 28, 2023 · 0 comments · Fixed by #11538
Assignees
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Filtering Related to the data grid Filtering feature

Comments

@MBilalShafi
Copy link
Member

MBilalShafi commented Dec 28, 2023

Steps to reproduce

Link to live example: https://codesandbox.io/p/sandbox/morning-shadow-mskhc8?file=%2Fsrc%2FDemo.tsx%3A61%2C13

Steps:

  1. Open filter panel
  2. Observe the column shown in filter panel is ID while the filterModel has firstName
  3. Try to close the filter panel by clearing the cross

Current behavior

  1. The column shown in filter panel is ID while the filterModel has firstName
  2. The filter panel is not closable by cross icon, since clearing is not happening

Expected behavior

In the light of #10552, the filterModel should be respected for unfilterable columns, the UI interactions on such filters should be disabled.

Context

Discovered while working on #10552

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: filtering

@MBilalShafi MBilalShafi added bug 🐛 Something doesn't work feature: Filtering Related to the data grid Filtering feature labels Dec 28, 2023
@MBilalShafi MBilalShafi self-assigned this Dec 28, 2023
@MBilalShafi MBilalShafi added the component: data grid This is the name of the generic UI component, not the React module! label Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Filtering Related to the data grid Filtering feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant