#Clear DatePickerInput value when undefined
5 messages Ā· Page 1 of 1 (latest)
Pass null
@drowsy hedge thanks for the help. I was using undefined as I usually do and thought there was a problem. I even tried changing the onChange but no luck there. I guess this should be in the documentation or if it is it should be in a place more readable because I couldn't find this info.
You can see it in the first example š
https://mantine.dev/dates/date-picker-input/#usage
const [value, setValue] = useState<Date | null>(null);