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

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

Open
peshoicov opened this issue Sep 29, 2017 · 0 comments

Comments

@peshoicov
Copy link

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.

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