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.

BUG: scrollToTime 00h:00m doesn't work

See original GitHub issue

Do you want to request a feature or report a bug?

Report a bug

What’s the current behavior?

scrollToTime prop does not work if the value’s date has 00h 00m

demo: https://codesandbox.io/embed/react-big-calendar-issue-scrolltotime-dp9zy video: https://monosnap.com/file/dP5aEOh73L2K7Z7IfU2XJQtNnxdtJS

It mostly likely happens because of this check https://github.com/intljusticemission/react-big-calendar/blob/master/src/TimeGrid.js#L261 - scrollToTime is not being applied because this._scrollRatio is zero (false) (calculated at line https://github.com/intljusticemission/react-big-calendar/blob/master/src/TimeGrid.js#L275)

What’s the expected behavior?

view scrolls to top when scrollToTime has been set to 00h:00m

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
amokcommented, Oct 18, 2019

@Dragomir-Ivanov done. pls take a look at #1501

0reactions
Dragomir-Ivanovcommented, Oct 18, 2019

@amok Good work, mate!

Read more comments on GitHub >

github_iconTop Results From Across the Web

BUG: scrollToTime 00h:00m doesn't work #1474 - GitHub
when you setHours(hours, minutes) milliseconds value is not zero (with a high enough level of probability :) ) but when you setHours(hours, ...
Read more >
Scheduler - scrollToTime doesn't work when the view is ...
Hi,. The problem occurs because Scheduler is not completely initialized if timeline views are used. We need more time to research this behavior....
Read more >
scrollToTime - Docs - FullCalendar
Programatically scroll the current view to the given time. calendar.scrollToTime( durationInput ). 10% of profits donated to effective charities.
Read more >
BUG--Scroll does not work if doing a formula and EDIT ...
I was using Excel 2003 (after Dinosaur heads) prior and this issue was not present. Assuming "EDIT DIRECTLY IN CELL" is OFF, when...
Read more >
Setting scrollToTime makes the calendar loose current scroll ...
I am setting the following props to react-big-calendar to make the calendar scroll to 10:00 on opening. scrollToTime={moment() .set({ h: 10, ...
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