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.

refetchEvents triggers scroll reset in month view

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
nkosarek-zymergencommented, Jan 8, 2022

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

0reactions
filipKudlacommented, Oct 19, 2022

some update?

Read more comments on GitHub >

github_iconTop Results From Across the Web

refetchEvents triggers scroll reset in month view #3153 - GitHub
Poking around some more -- it appears that the refetch is clearing all of the events inside the month view, which in turn...
Read more >
Double entry on switching form day to week or month in ...
I have an issue when I try to scroll to other views on fullcalendar and trying switch form day to week or month...
Read more >
Calendar::refetchEvents - Docs - FullCalendar
Refetches events from all sources and rerenders them on the screen.
Read more >
fullcalendar.js_backup20160503_beforeTitleFix
Converts View-Option-Hashes into the View-Specific-Options format. function ... left/right/top/bottom scrollbar widths for the given jQuery element.
Read more >
@fullcalendar/daygrid | Yarn - Package Manager
FullCalendar Day Grid Plugin. Display events on a month view or "day grid" view. Installation. Install the necessary packages: npm install @fullcalendar/ ...
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