Skip to content

Commit

Permalink
Keep operator after clear button click
Browse files Browse the repository at this point in the history
  • Loading branch information
arminmeh committed Dec 19, 2024
1 parent 5de8cd0 commit 3063a4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const GridHeaderFilterCell = React.forwardRef<HTMLDivElement, GridHeaderFilterCe
);

const clearFilterItem = React.useCallback(() => {
apiRef.current.deleteFilterItem(item);
apiRef.current.upsertFilterItem({ ...item, value: undefined });
}, [apiRef, item]);

let headerFilterComponent: React.ReactNode;
Expand Down

0 comments on commit 3063a4e

Please sign in to comment.