fullcalendar: refetchEvents triggers scroll reset in month view

Using fullcalendar 5.10.1 I experienced an issue which sounds a lot like #3153 (which was fixed in 2.8.0), so this might be a regression.

Reduced Test Case

I adapted the old test case to the current version of fullcalendar: https://jsfiddle.net/q63vg8oa/

Bug Description

  • steps to reproduce
    • open the dayGridMonth View
    • add several events to the same day (so that the row needs to expand)
    • scroll down
    • call refetchEvents()
  • expected result
    • the scroll position remains the same
  • what happens instead?
    • scroll position is moved up

I guess this happens because the events are temporarily removed, so the row gets smaller and the scroll position needs to adjust. When the events are added again the row expands again, but the scroll position remains the same.

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 7
  • Comments: 16

Most upvoted comments

Having same issue. Would be great to have it fixed.

I’m also running into this issue. If it helps, it seems like it was introduced between v5.6.0 and v5.7.0, so I just pinned to v5.6

as a workaround you can set min-height for “.fc-daygrid-body” same as height just before refetching events. then remove min-height after refetch.

Same problem… Any workaround out there?