fix: Scroll fails past start or end date #156
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
When the calendar has start or end date defined like so
![image](https://user-images.githubusercontent.com/43700979/155527123-e34e893f-6f93-4baa-8a54-3a9171742f17.png)
![image](https://user-images.githubusercontent.com/43700979/155527214-3656b0e7-0a90-4163-a09b-bb2759f7c967.png)
If you go a date anywhere before 24th on the next month
The left button to go back a month will fail, the same will happen if it's selecting date or year. The reason is becasue when clicking the left button it will select a date a month ago and if that date is unselectable (behind start date or after end date) then it will just give up. This also breaks scrolling because it's the same action as clicking the arrows. A possible solution is to take the start date or end date instead of doing nothing.
Changes