Skip to content

v1.10.0 breaks clearDates on date range #2723

@avsdev-cw

Description

@avsdev-cw

Prior to v1.10.0, calling clearDates on a date range (main input) or, by unwrapping the function, calling clearDates on both of the inputs would clear down the inputs correctly. Since the release of v1.10.0, the function now SETS the date on the first input instead of clearing it and if called from one of the two inputs, will set the date in the OTHER input.

This makes it impossible to actually clear the date range!

I'm aware of #1724 however I think this ticket should have been closed by the PR that was released at the time so is not applicable.

Example:
https://jsbin.com/sojeyitese/edit?html,console,output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions