Day view navigation bug when trying to navigate to a day of another week
See original GitHub issueHello!
In v3.3.0 there seems to be a bug with the day view when the weekends
option is set to false
. Navigating from friday to monday next week, or monday to friday the previous week, ain’t possible. The next/previous button shows up as disabled.
v3.2.0 didn’t have this issue.
I’m guessing it might have something to do with the buildRangeInfo
method together with the validRange
option introduced in v3.3.0, but I haven’t got to look more into it yet.
Test case 1, v3.3.0 (weekends: false
):
Steps to reproduce:
- change to day view
- try and navigate to monday next week or friday the previous week Result: next/previous button gets disabled, making it impossible to navigate to another week.
When changing back to week view the button stays disabled until you change week again.
Expected behaviour: Since the validRange
option isn’t set, I would expect it to be possible to navigate endlessly back and forwards between weeks in day view, just like the week view behaves.
Test case 2, v3.2.0 (weekends: false
):
Works as expected, next and previous buttons don’t get disabled.
Test case 3, v3.3.0 (weekends: true
):
Works as expected, next and previous buttons don’t get disabled.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top GitHub Comments
thanks. reproduced. will fix this very soon.
the next/prev buttons are disabled because of the
validRange
you provided. Both the previous and next views would have days the are completely disabled, and thus the calendar won’t let you navigate to them