- Status changed to Postponed: needs info
over 1 year ago 10:25am 10 July 2023 - π©πͺGermany Anybody Porta Westfalica
How can we reproduce this? I wasn't able to yet...
- First commit to issue fork.
I get a $view undefined js error intermittently depending on perhaps the speed and order in which ajax events take place.
I have an attached view using the infinite scroll, so maybe 1 is completing an ajax event sooner?
I'm also using an exposed form and other ex: ajaxComplete.
Wrapping the 'infiniteScrollInsertView' in a promise seems to resolve the issue.
$.when(Drupal.views.instances[currentViewId]).done(function (x) {
// Get the existing ajaxViews object.
var view = Drupal.views.instances[currentViewId];
. . .
// Run views and VIS behaviors.
Drupal.attachBehaviors(view.$view[0]);
});
Postponed: needs info
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
How can we reproduce this? I wasn't able to yet...