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.

scrollToTime prop is unintuitive

See original GitHub issue

First off, thank you for maintaining this awesome library! Though I have a question/request:

In my project I only need the week view. Setting the scrollToTime prop is very unintuitive in my opinion. When setting the property initially everything works fine but setting it a second time nothing happens (this is especially a problem when asynchronously loading events and setting the scrolltime according tho their start/end times).

The component only updates its scrolled time once the user navigates or when the prop is changed again (creating this off by one feeling: the scrolled time is always the value I set it before the one that the component is displaying).

I don’t know if this is expected or wanted behavior but there should be at least an option where the scrollToTime prop can be a completely controllable prop of the component.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

3reactions
zaunermaxcommented, Mar 13, 2019

@Way-U-Need the issue was closed without providing any further information by @jquense

3reactions
shettypuneethcommented, Jul 19, 2017

We have a similar requirement in DAY view wherein, the scrollToTime value changes on user interaction. But currently the calendar doesn’t scroll to the updated scrollToTime value or sometime scrolls to an incorrect time slot. Is this a bug or scrollToTime prop only works on the initial load? I’ve set up a code sandbox to repro the issue: https://codesandbox.io/s/B225Y0EJ

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
scrollToTime - Docs - FullCalendar
Programatically scroll the current view to the given time. calendar.scrollToTime( durationInput ). 10% of profits donated to effective charities.
Read more >
react-big-calendar-issue-scrollToTime - CodeSandbox
VS Code's tsserver was deleted by another application such as a misbehaving virus detection tool. Please reinstall VS Code. Manage Extension.
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