From 66d9f1cbb53dfc07f0f8ce6140ad302a14f35e06 Mon Sep 17 00:00:00 2001 From: Matt Cole Date: Fri, 21 Jun 2024 12:37:33 +0200 Subject: [PATCH] Consider date-range as range filter in filter label --- .../src/head/MRT_TableHeadCellFilterLabel.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/mantine-react-table/src/head/MRT_TableHeadCellFilterLabel.tsx b/packages/mantine-react-table/src/head/MRT_TableHeadCellFilterLabel.tsx index e946c53de..d7a162e19 100644 --- a/packages/mantine-react-table/src/head/MRT_TableHeadCellFilterLabel.tsx +++ b/packages/mantine-react-table/src/head/MRT_TableHeadCellFilterLabel.tsx @@ -46,6 +46,7 @@ export const MRT_TableHeadCellFilterLabel = < const isRangeFilter = columnDef.filterVariant === 'range' || + columnDef.filterVariant === 'date-range' || ['between', 'betweenInclusive', 'inNumberRange'].includes( columnDef._filterFn, );