question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Day view navigation bug when trying to navigate to a day of another week

See original GitHub issue

Hello!

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:

  1. change to day view
  2. 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:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
arshawcommented, Mar 30, 2017

thanks. reproduced. will fix this very soon.

0reactions
arshawcommented, Apr 27, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Day View Date Navigation - Extensions - The Events Calendar
Day View Date Navigation. This extension will add a day strip, a banner of days to your day view to give the website...
Read more >
386197 - all calendar entries invisible after first navigation
As soon as I navigate to another week all entries disappear and also don't come back again. By clicking on "day-view" the items...
Read more >
How to change to week and days according to current views
setDays(toolbar. date. getDay() + 1); //i want to change the dates state according to current view }; const goToWeekView = () => {...
Read more >
What are hypomania and mania? - Mind
Mania lasts for a week or more and has a severe negative impact on your ability to do your usual day-to-day activities –...
Read more >
Apple previews innovative accessibility features
Apple is introducing Door Detection, a cutting-edge navigation ... This week, Apple is celebrating Global Accessibility Awareness Day with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found