-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
Deploy preview: https://deploy-preview-15528--material-ui-x.netlify.app/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just 2 nitpicks
packages/x-data-grid-pro/src/components/headerFiltering/GridHeaderFilterCell.tsx
Show resolved
Hide resolved
@@ -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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
const isApplied = item?.value !== undefined || isNoInputOperator; | |
const isApplied = item?.value != undefined || isNoInputOperator; |
all right ... I'll let @arminmeh as the main reviewer approve this! 👍🏼 |
@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) |
All good from my side, you can merge it |
Closes #15524
Related to #15252
Preview - https://deploy-preview-15528--material-ui-x.netlify.app/x/react-data-grid/filtering/header-filters/