I have problem with views_infinite_scroll on my custom sub-theme based on core's stable theme. Ajax for page didn't working, no event subscriber on button.
So I found this js code:
/core/modules/views/js/ajax_view.js
Drupal.views.ajaxView.prototype.filterNestedViewsPager = function (id, link) {
return !this.$view.parents('.view').length ? $(link).parents('.view').length === 1 : true;
};
Drupal.views.ajaxView.prototype.attachPagerAjax = function () {
this.$view.find('ul.js-pager__items > li > a, th.views-field a, .attachment .views-summary a').filter($.proxy(this.filterNestedViewsPager, this)).each($.proxy(this.attachPagerLinkAjax, this));
};
If you see at filterNestedViewsPager function, you can found that this code expecting .view class on dom element, but there is no view class in html.
Here is a twig of view template of stable theme:
core/themes/stable/templates/views/views-view.html.twig
{%
set classes = [
dom_id ? 'js-view-dom-id-' ~ dom_id,
]
%}
<div{{ attributes.addClass(classes) }}>
Proposed solution:
a) Add class to html.twig, like classy theme does.
b) Add this class (or other class/attribute) on preproces