From f24e39ccb7cefc206996f445dee82e054c752657 Mon Sep 17 00:00:00 2001 From: Sli Date: Wed, 17 Dec 2025 00:01:48 +0100 Subject: [PATCH] Fix aria-busy when going backward on pages with htmx pagination --- core/static/bundled/htmx-index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/static/bundled/htmx-index.js b/core/static/bundled/htmx-index.js index 474617ac..5880668d 100644 --- a/core/static/bundled/htmx-index.js +++ b/core/static/bundled/htmx-index.js @@ -1,11 +1,11 @@ import htmx from "htmx.org"; document.body.addEventListener("htmx:beforeRequest", (event) => { - event.target.ariaBusy = true; + event.detail.target.ariaBusy = true; }); -document.body.addEventListener("htmx:afterRequest", (event) => { - event.originalTarget.ariaBusy = null; +document.body.addEventListener("htmx:beforeSwap", (event) => { + event.detail.target.ariaBusy = null; }); Object.assign(window, { htmx });