Add e.stopImmediatePropagation() to prevent reload page when a Facets link is clicked.

This commit is contained in:
Kyle Huynh 2021-09-16 15:04:42 -04:00
parent cda7fcaf67
commit 5b06be16f1

View file

@ -126,6 +126,10 @@
return; return;
} }
e.preventDefault(); e.preventDefault();
// added to prevent page reload if a facet link is clicked (Ajax of view is enabled)
e.stopImmediatePropagation();
window.history.pushState(null, document.title, $(this).attr("href")); window.history.pushState(null, document.title, $(this).attr("href"));
}); });