From 81b96aa870f00ff6a05d70c2ab9ade06209664c1 Mon Sep 17 00:00:00 2001 From: Saverio Trioni <476895+rewritten@users.noreply.github.com> Date: Thu, 5 Mar 2026 13:52:53 +0100 Subject: [PATCH] Add event listener for htmx:after:process With htmx 4, there are new events to listen to. Setting up a listener now should be harmless because they are simply not emitted by anyone unless they have the newer htmx installed. --- www/js/lib/core.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/js/lib/core.js b/www/js/lib/core.js index bc10cb499..7c4946ca3 100644 --- a/www/js/lib/core.js +++ b/www/js/lib/core.js @@ -5276,6 +5276,9 @@ if ("document" in globalScope) { document.addEventListener("htmx:load", function (/** @type {CustomEvent} */ evt) { _runtime.processNode(evt.detail.elt); }); + document.addEventListener("htmx:after:process", function (/** @type {CustomEvent} */ evt) { + _runtime.processNode(evt.target); + }); }); }); }