Skip to content

Commit

Permalink
Merge pull request #375 from mattwcole/date-range-filter-label-v2
Browse files Browse the repository at this point in the history
Consider date-range as range filter in filter label v2
  • Loading branch information
alessandrojcm authored Jul 17, 2024
2 parents 6c5bf19 + 55274b8 commit 5e036c2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const MRT_TableHeadCellFilterLabel = <TData extends MRT_RowData>({

const isRangeFilter =
columnDef.filterVariant === 'range' ||
columnDef.filterVariant === 'date-range' ||
['between', 'betweenInclusive', 'inNumberRange'].includes(
columnDef._filterFn,
);
Expand Down

0 comments on commit 5e036c2

Please sign in to comment.