Currently when I set a maxDate to the DatePicker it tends to automatically selects a date. Is there a way to prevent this?
const maxDateAllowed = () => {
var date = new Date();
date.setFullYear(date.getUTCFullYear() - 14);
return date;
};
<KeyboardDatePicker
variant="inline"
value={!myDate ? null : myDate}
maxDate={maxDateAllowed()}
onChange={date => handleDateChange(date)}
/>