diff --git a/packages/material-react-table/src/components/inputs/MRT_FilterTextField.tsx b/packages/material-react-table/src/components/inputs/MRT_FilterTextField.tsx index 61adf3755..380738a19 100644 --- a/packages/material-react-table/src/components/inputs/MRT_FilterTextField.tsx +++ b/packages/material-react-table/src/components/inputs/MRT_FilterTextField.tsx @@ -179,7 +179,7 @@ export const MRT_FilterTextField = ({ textFieldProps.type === 'date' ? event.target.valueAsDate : textFieldProps.type === 'number' - ? event.target.valueAsNumber + ? isNaN(event.target.valueAsNumber) ? undefined : event.target.value : event.target.value; handleChange(newValue); textFieldProps?.onChange?.(event);