Skip to content
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

selectedDates change does not clear old selected dates #7

Open
VonD opened this issue May 11, 2016 · 0 comments
Open

selectedDates change does not clear old selected dates #7

VonD opened this issue May 11, 2016 · 0 comments

Comments

@VonD
Copy link
Contributor

VonD commented May 11, 2016

Hi,

Thanks for the lib!
Updating the array of selected dates sets the new dates as selected, but does not clear the old ones that are no longer present in the array.
That's really not intuitive in a React context, where you'd expect the selected dates to always mirror the prop and to not depend on a previous state.
I can submit a PR if you're ok to change that API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant