From 32cad0308871f43ea97e7600bed81a96273c6d92 Mon Sep 17 00:00:00 2001 From: shaamilahmed Date: Mon, 13 Apr 2026 20:10:43 +0500 Subject: [PATCH] Fixed issue detecting blazor navigation. (Was not initializing HTMX on navigation when done through blazor UI) --- Enciphered.Blazor.UIComponents/wwwroot/js/forms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Enciphered.Blazor.UIComponents/wwwroot/js/forms.js b/Enciphered.Blazor.UIComponents/wwwroot/js/forms.js index bdc4f9b..87f9afb 100644 --- a/Enciphered.Blazor.UIComponents/wwwroot/js/forms.js +++ b/Enciphered.Blazor.UIComponents/wwwroot/js/forms.js @@ -595,7 +595,7 @@ export function init() { syncValidationStyling(); }); - document.addEventListener('blazor:enhanced-load', () => { + window.Blazor.addEventListener('enhancedload', () => { initComponents(); if (typeof htmx !== 'undefined') htmx.process(document.body); });