Skip to content

Commit

Permalink
Revert old behavior, delete filter item from the model on click on th…
Browse files Browse the repository at this point in the history
…e clear button
  • Loading branch information
arminmeh committed Dec 20, 2024
1 parent 2797988 commit 35c539d
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.upsertFilterItem({ ...item, value: undefined });
apiRef.current.deleteFilterItem(item);
}, [apiRef, item]);

let headerFilterComponent: React.ReactNode;
Expand Down

0 comments on commit 35c539d

Please sign in to comment.