Scrolling the page down on a calendar causes it to jump back to the top

Created on 16 August 2022, almost 2 years ago
Updated 4 May 2023, about 1 year ago

Problem/Motivation

OK, this is a strange one. After updating from 5.1.6 to 5.1.7, any time you attempt to scroll down on a page containing a calendar, the page scrolls back up to the top. I reverted back to 5.1.6 and the problem went away.

I don't even know where to begin to troubleshoot this. I did inspect the page and it looks like there is a JS timer or something that is causing the display to refresh rapidly and therefore jump back to the top. Turning AJAX on/off in the view doesn't change anything. I'm stumped.

-=Delty

πŸ› Bug report
Status

Closed: works as designed

Version

5.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Delty

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¦πŸ‡ΊAustralia Mingsong πŸ‡¦πŸ‡Ί

    Any error / warning message in the Drupal log or your browser console?
    What version of your Drupal core?
    What version of this module that came across this issue?

  • πŸ‡ΊπŸ‡ΈUnited States Delty

    Hi,

    This happens with Drupal 9.x. There have been several Drupal version updates since this issue was created 8 months ago so it doesn't seem to be related to the Drupal verion.

    This started with FullCalendar View 5.1.7. - 5.1.6 does not have this issue. There are no errors in the Drupal log, the server log, or in the browser console that I can see. I'm gonig to poke around some more and see what I can come up with.

  • πŸ‡ΊπŸ‡ΈUnited States Delty

    Hi,

    I did some testing with it this morning and wasn't able to come up with anything useful other than that I switched to the default theme and it still had the scroll-up issue in any version beyond 5.1.6. I'm happy to do any testing if you have some thoughts on why this is happening.

    Thanks,

    -=Delty

  • πŸ‡¦πŸ‡ΊAustralia Mingsong πŸ‡¦πŸ‡Ί

    When you said 'default theme', do you mean 'Olivero 9.5.7' theme from Drupal 9.5?

    Is there a scrolling button shipping with Olivero theme? If not, how could that happen?

    Till 2nd April, there are near 10k sites installing 5.1.6 and above, and no others came across this issue.

    So I think you need to have a close look at your custom theme.

  • Status changed to Closed: works as designed about 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia Mingsong πŸ‡¦πŸ‡Ί
  • πŸ‡ΊπŸ‡ΈUnited States Delty

    I've narrowed the issue down to a single line in fullcalendar_view.js...

    // Trigger Drupal behaviors when calendar events are updated.
    calendarOptions.datesRender = datesRender;

    I've commented this out and everything seems to work just fine without it. Is it even needed?

    Thanks,
    -=Delty

  • πŸ‡¦πŸ‡ΊAustralia Mingsong πŸ‡¦πŸ‡Ί
Production build 0.69.0 2024