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

[DataGridPro] Fix header filtering with boolean column type #15528

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

k-rajat19
Copy link
Contributor

@k-rajat19 k-rajat19 commented Nov 21, 2024

@mui-bot
Copy link

mui-bot commented Nov 21, 2024

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

Generated by 🚫 dangerJS against 2d3521d

Copy link
Member

@michelengelen michelengelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just 2 nitpicks

@@ -314,7 +314,7 @@ const GridHeaderFilterCell = React.forwardRef<HTMLDivElement, GridHeaderFilterCe

const isNoInputOperator = currentOperator.requiresFilterValue === false;

const isApplied = Boolean(item?.value) || isNoInputOperator;
const isApplied = item?.value !== undefined || isNoInputOperator;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Suggested change
const isApplied = item?.value !== undefined || isNoInputOperator;
const isApplied = item?.value != undefined || isNoInputOperator;

@michelengelen michelengelen self-assigned this Nov 21, 2024
@michelengelen michelengelen added bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Filtering on header Related to the header filtering (Pro) feature labels Nov 21, 2024
@k-rajat19 k-rajat19 marked this pull request as ready for review November 21, 2024 10:52
@michelengelen michelengelen self-requested a review November 21, 2024 13:44
@michelengelen
Copy link
Member

all right ... I'll let @arminmeh as the main reviewer approve this! 👍🏼

@arminmeh
Copy link
Contributor

@k-rajat19 should this be merged?

We usually wait for the contributors to merge their own PRs (in case there is still something that they had in mind)

@k-rajat19
Copy link
Contributor Author

All good from my side, you can merge it
I don't have permissions to merge PRs.

@arminmeh arminmeh merged commit 497912c into mui:master Nov 27, 2024
18 checks passed
@arminmeh arminmeh added needs cherry-pick The PR should be cherry-picked to master after merge v7.x labels Nov 27, 2024
@k-rajat19 k-rajat19 deleted the issue-15524 branch November 28, 2024 05:52
LukasTy pushed a commit to LukasTy/mui-x that referenced this pull request Dec 19, 2024
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 on header Related to the header filtering (Pro) feature needs cherry-pick The PR should be cherry-picked to master after merge v7.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data grid] boolean headerFilter with option false does not work
4 participants