Skip to content

Commit

Permalink
[DataGrid] Support date and datetime-local input types in `GridFi…
Browse files Browse the repository at this point in the history
…lterInputMultipleValue` type (#13411)

Signed-off-by: Carlos De Dios <[email protected]>
Co-authored-by: Andrew Cherniavskyi <[email protected]>
  • Loading branch information
karudedios and cherniavskii authored Jul 15, 2024
1 parent 3a7ebdb commit 9d49261
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<AutocompleteProps<string, true, false, true>, 'options' | 'renderInput'>;

Expand Down Expand Up @@ -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 };

0 comments on commit 9d49261

Please sign in to comment.