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

Bug: DayPickerInput, changing month in captionElement with selected value will be ignored #425

Cagyo opened this Issue Jun 22, 2017 · 1 comment


2 participants

Cagyo commented Jun 22, 2017

To reproduce the error, in DayPickerInput select any day and after change month or year by selecting it in captionElement - month and year will remain unchanged.

The problem is in getStateFromProps function:
const m = moment(props.value, props.format, true); if (m.isValid()) { month = m.toDate(); }


This comment has been minimized.

Show comment
Hide comment

gpbl Jun 22, 2017


Thanks for the report! Fixed in v6.03


gpbl commented Jun 22, 2017

Thanks for the report! Fixed in v6.03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment