Skip to content

selectedDates change does not clear old selected dates #7

@VonD

Description

@VonD

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions