BUG: scrollToTime 00h:00m doesn't work
See original GitHub issueDo 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:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Dragomir-Ivanov done. pls take a look at #1501
@amok Good work, mate!