- last update
over 1 year ago 30,157 pass - last update
over 1 year ago 29,477 pass
I have a page that displays 20 views. Each of them is updated via the RefreshView command
jQuery(selector).trigger('RefreshView');
selector is always unique
When updating each view, there is duplication of requests. The number of requests doubles with each click.
After analyzing the code, I noticed that error can be in function Drupal.behaviors.ViewsAjaxView.attach
In function Drupal.behaviors.ViewsAjaxView.detach -
we have code, where we used context for delete event
if ($(selector, context).length) {
delete Drupal.views.instances[i];
delete settings.views.ajaxViews[i];
}
but for adding code don`t use context
Needs work
11.0 π₯
Last updated
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.