Skip to content

After selecting period from different month - calling "setRange" incorrectly brings calendar to initial month #85

@peshoicov

Description

@peshoicov

The plugin is awesome and we're using it.

However - when a users navigates - let say 5 months ahead - and then selects range - the calendar goes back to the initial month.

I debugged the plugin's source code and saw that when we use "setRange" - it automatically calls:

(...).datepicker('refresh');
(...).datepicker('setDate', null);

The latter is what brings the calendar back to it's initial month. But we do not want this - our user has navigated months ahead.

Why is this behavior in the first place? ... and can we avoid it?

PS: We do not automatically close the calendar, as in the official examples.

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