mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
The htmx:afterSwap handler was calling initAccordions(e.detail.target) but after an outerHTML swap, e.detail.target references the old detached DOM element, not the new live element. This meant accordion click handlers were never attached to the new filter column toggles after applying or removing a filter — breaking all subsequent interaction. Fix: query the live DOM with document.querySelector() instead.
4.7 KiB
4.7 KiB