Skip to content

Commit 86d9069

Browse files
authored
Merge pull request #1625 from maykinmedia/fix/3003-filter-cases-pagination
🐛 [#3003] Fix case-filters when paginated
2 parents 8250672 + 1ae8551 commit 86d9069

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/open_inwoner/js/components/FilterBar/multiselect_listbox_checkbox.js

+3
Original file line numberDiff line numberDiff line change
@@ -286,5 +286,8 @@ document.body.addEventListener('htmx:afterSwap', function () {
286286
document.addEventListener('click', function (e) {
287287
if (e.target && e.target.classList.contains('pagination__link')) {
288288
scrollToTopOfWindow() // Scroll up after clicking pagination
289+
setTimeout(function () {
290+
initFilterBar() // Reinitialize filter bar after HTMX swap from pagination
291+
}, 20)
289292
}
290293
})

0 commit comments

Comments
 (0)