-
-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onDayChange not always called from DayPickerInput #614
Comments
In daypickerinput.js it has if (onDayChange) {
onDayChange(undefined, {});
}
return;
}
const day = parseDate(value, format, dayPickerProps.locale);
if (!day) {
this.setState({ value });
return;
}
this.updateState(day, value); perhaps the |
|
I was missing something, input props that you can pass:
|
The onDayChange function is not called where you manually enter invalid text into the text box of the DayPickerInput.
See https://codesandbox.io/s/v6m53q7o47
Select a date - alert is shown
Enter X as the date picker text - no alert
The text was updated successfully, but these errors were encountered: