scrollToTime prop is unintuitive
See original GitHub issueFirst 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:
- Created 6 years ago
- Reactions:3
- Comments:5
Top GitHub Comments
@Way-U-Need the issue was closed without providing any further information by @jquense
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