From 9d4926170c53676c1281030f11f9e47363791ed0 Mon Sep 17 00:00:00 2001 From: Carlos De Dios Date: Mon, 15 Jul 2024 13:43:38 -0600 Subject: [PATCH] [DataGrid] Support `date` and `datetime-local` input types in `GridFilterInputMultipleValue` type (#13411) Signed-off-by: Carlos De Dios Co-authored-by: Andrew Cherniavskyi --- .../panel/filterPanel/GridFilterInputMultipleValue.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/x-data-grid/src/components/panel/filterPanel/GridFilterInputMultipleValue.tsx b/packages/x-data-grid/src/components/panel/filterPanel/GridFilterInputMultipleValue.tsx index a6536b80ac0e2..e62a475011b70 100644 --- a/packages/x-data-grid/src/components/panel/filterPanel/GridFilterInputMultipleValue.tsx +++ b/packages/x-data-grid/src/components/panel/filterPanel/GridFilterInputMultipleValue.tsx @@ -6,7 +6,7 @@ import { useGridRootProps } from '../../../hooks/utils/useGridRootProps'; import { GridFilterInputValueProps } from './GridFilterInputValueProps'; export type GridFilterInputMultipleValueProps = { - type?: 'text' | 'number'; + type?: 'text' | 'number' | 'date' | 'datetime-local'; } & GridFilterInputValueProps & Omit, 'options' | 'renderInput'>; @@ -113,7 +113,7 @@ GridFilterInputMultipleValue.propTypes = { operator: PropTypes.string.isRequired, value: PropTypes.any, }).isRequired, - type: PropTypes.oneOf(['number', 'text']), + type: PropTypes.oneOf(['date', 'datetime-local', 'number', 'text']), } as any; export { GridFilterInputMultipleValue };