- ๐ฆ๐บAustralia mingsong ๐ฆ๐บ
Do you still come across this issue with 5.1.11?
If so, what error / waring message in your Drupal log or in your browser console?
What version of Drupal core are you using? - ๐ฎ๐ณIndia shabana.navas
Yes, I'm running the latest version and am getting the same issue.
- ๐ฎ๐ณIndia shabana.navas
Nevermind, that was due to custom code on my side.
- Status changed to Closed: works as designed
over 1 year ago 11:31pm 8 June 2023 - Status changed to Active
5 months ago 12:18pm 25 July 2024 - ๐ช๐ธSpain ecdani
This is still an issue, the module intercepts any jquery ajaxComplete event and resets the calendar.
Im using Drupal 10.2.7 and Fullcalendar_view 5.1.13. It doesn't show any error message or similar.I think that this is a side effect of an intentional behavior.
The line 396 of js/fullcalendar_view.js intercepts every ajax call (related or not to the calendar), and destroys and recreates the calendar, resetting the navigation.
ยฟThere are any potential solution or workaround?
Ty. alan ridgway โ made their first commit to this issueโs fork.
I made a change in the fork here to try and ensure that the only ajax that changes the calendar view comes from views ajax. I don't think it covers the entirety of the need here considering other views on the page sending ajax requests will still reload the calendar, but it's a start!
- Merge request !79Ensure that the only ajax that updates the calendar comes from views. โ (Open) created by Alan Ridgway
- ๐ต๐ญPhilippines bryanmanalo
Added a patch to store the default date and view before any ajax call. Then reload those values on calendar rebuild/ajax complete.
Visually speaking, the redraw is not noticeable.
- ๐ฆ๐บAustralia mingsong ๐ฆ๐บ
From what I see, we got two proposed approaches so far.
@bryanmanalo, could you please create a new fork for your patch? We need the CI tests to make sure new changes won't create a regression bug.
If someone could create a new JavaScript functional test to reproduce this issue with CI, that would be great.