2

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, m: 0 })
                .toDate()} 

However, not surprisingly this leads to rerendering of the calendar when resizing or dropping an event. Is there any way to combat this?

Codesandbox: https://codesandbox.io/s/react-big-calendar-drag-and-drop-events-between-months-tphkw

Maifee Ul Asad
  • 3,992
  • 6
  • 38
  • 86
Edgar Navasardyan
  • 4,261
  • 8
  • 58
  • 121

0 Answers0