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.

Starting date changed when scrolling

See original GitHub issue

Hello. I really need your help. I’m trying to add scrolling but the starting date has changed. If using arrows, it works fine.

Here’s my code:

            style={{ height: 100 }}
            selectedDate={new Date()}
              alignItems: 'center',
              justifyContent: 'center',
              width: 20,

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

peacechencommented, May 26, 2021

@rjuevesano Would you mind submitting a PR?

Your modification should be able to be simplified as such:

      if (useIsoWeekday) {
        // isoWeekday starts from Monday
        date = this.setLocale(_startingDate.clone().isoWeekday(i + 1));
      } else {
        date = this.setLocale(_startingDate.clone().add(i, "days"));

Please validate that also works. Would prefer the simpler code in the PR.

peacechencommented, May 27, 2021

2.2.2 has been published with @rjuevesano 's fix

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scrolling to insert dates - Microsoft Community
I have a new PC with new Excel. I tried to insert a date then scroll down to show sequential dates (23.10. then...
Read more >
Preventing Scroll Change on Change of Project Start/End Date
As the timeline gets updated due to data source change, the scrollbar may move back and forth and it appears like flickering. In...
Read more >
When editing a calender date through my smartphone I am ...
When I edit a date in google calender app through my smartphone I am unable to scroll downwards anymore to change e.g. the...
Read more >
Excel Select Date With Scroll Bar - Contextures
In this example, the Scroll Bar will change the end date in a summary report, so you can scroll through the months, and...
Read more >
Scroll to current date when opening md-calender
Anyway, the problem is due to the md-datepicker not being properly intialized, there could be a number of reasons for that, my solution...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found