- 🇮🇳India dipayanpramanik5 New Delhi
Does anyone resolves this issue. I am facing the same issue in d9
- 🇬🇧United Kingdom joehuggans Harrogate, UK
Seeing this in Drupal 9 also, works fine if not using Ajax on your view.
The ajax command viewsShowMore seems to be running twice, the second time it runs $($.parseHTML(response.data, document, true)) is empty.
But then even if you force it to just run once, there is still the issue of it not showing the last page, which #7 fixes but not sure if this is the proper way to handle this.
This module is broken when using AJAX.
- First commit to issue fork.
- @ramprassad opened merge request.
- 🇮🇳India ramprassad
Fixed the issue in the Views Show more module and opened a merge request.
The issue is that when you click Show more initially you can see in the AJAX response there are 2 viewsshowmore callbacks - one with the data and the other with empty data which means viewsshowmore gets called twice. This happens when you use the normal pager which calls "insert" command.
The fix adds the if empty check for the newcontent in viewsshowmore AJAX Command similar to the core misc.js for the 'insert' AJAX Command.
- 🇺🇸United States jim22
Thanks, ramprassad! Your updates seem to be working for me. I created a patch from your fork so I could test it. Will attach it for anyone else that needs it.
- Status changed to RTBC
over 1 year ago 5:57am 5 July 2023 - Status changed to Fixed
over 1 year ago 12:17pm 6 July 2023 -
ivnish →
committed 20b6f465 on 2.x authored by
ramprassad →
Issue #3123495 by ramprassad, jim22, Ammar Qala, fizzgig, abhuman,...
-
ivnish →
committed 20b6f465 on 2.x authored by
ramprassad →
Automatically closed - issue fixed for 2 weeks with no activity.