From 488e77a29ce2a99076bb03a81eacc7aadcf4eb16 Mon Sep 17 00:00:00 2001 From: Horilla Date: Mon, 6 Oct 2025 18:36:02 +0530 Subject: [PATCH] [UPDT] HORILLA_DOCUMENTS: Introduce hx-disinherit=* to stop unwanted HTMX attribute inheritance --- employee/templates/documents/document_nav.html | 1 + employee/templates/tabs/htmx/document_form.html | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/employee/templates/documents/document_nav.html b/employee/templates/documents/document_nav.html index b4850c3d1..1227aac2f 100644 --- a/employee/templates/documents/document_nav.html +++ b/employee/templates/documents/document_nav.html @@ -27,6 +27,7 @@ hx-target="#view-container" hx-select="#view-container" hx-swap="outerHTML" + hx-disinherit="*" id="filterForm" class="d-flex" onsubmit = "event.preventDefault()" diff --git a/employee/templates/tabs/htmx/document_form.html b/employee/templates/tabs/htmx/document_form.html index 0e1918b0c..74d16d9d6 100644 --- a/employee/templates/tabs/htmx/document_form.html +++ b/employee/templates/tabs/htmx/document_form.html @@ -15,10 +15,6 @@ {% elif form.candidate_id %} {% endif %} - - - - {{ form.non_field_errors }}