Skip to content

[DataGrid] Use exclude selection model type if quick filter does not have actual values #17899

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

Merged
merged 2 commits into from
May 19, 2025

Conversation

arminmeh
Copy link
Contributor

Extracted from #17743

Makes the grid use exclude selection type if quick filter has values, but they are all empty strings

like

initialState={{
  filter: {
    filterModel: {
      items: [],
      quickFilterValues: [''],
    },
  },
}}

@arminmeh arminmeh requested a review from a team May 19, 2025 14:32
@arminmeh arminmeh added scope: data grid Changes or issues related to the data grid product feature: Selection Related to the data grid Selection feature type: enhancement This is not a bug, nor a new feature labels May 19, 2025
@mui-bot
Copy link

mui-bot commented May 19, 2025

Deploy preview: https://deploy-preview-17899--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 27c4b54

@arminmeh arminmeh enabled auto-merge (squash) May 19, 2025 14:41
@arminmeh arminmeh merged commit cb7a826 into mui:master May 19, 2025
23 checks passed
@arminmeh arminmeh deleted the select-exclude-improvement branch May 19, 2025 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: Selection Related to the data grid Selection feature scope: data grid Changes or issues related to the data grid product type: enhancement This is not a bug, nor a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants