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

currentDate/selectedDates ignored when changing to week mode with range selection set #965

Open
sampengilly opened this issue Jun 21, 2019 · 1 comment

Comments

@sampengilly
Copy link

It's easy enough getting the week containing the selected date to show in week view for single date selection by setting the currentDate. However when changing to week view with a date range selected (and after setting currentDate to the first date of the range), the calendar reverts to showing the week containing today.

For example, today is the 21st of June, if you select a range in say August, set the current date to the first date in your range, and collapse to week mode, the week shown will be the week containing the 21st of June. Expanding back to month mode the calendar will remain focused on June

@sampengilly
Copy link
Author

As a suggestion, could a method be added to the state builder/editor to specify our own date that we want to be the focus. Using that date to set calendarDayToShow in commit() if one is provided?

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