From 11024b7b895574f958771aaaaab09ea4dcd77ca4 Mon Sep 17 00:00:00 2001 From: Bryce Date: Tue, 16 Jun 2026 14:58:36 -0700 Subject: [PATCH] fix(ssr): transaction rule wizard drops fields on Next The EditModal step body wrapped all rule fields in a nested
inside the wizard's own #wizard-form. By HTML form-ownership rules those fields belonged to the inner form, so when htmx serialized #wizard-form on Next, none of the step-params fields were sent. The server saw an empty rule, reported "required" for description/accounts, and re-rendered a blank wizard (losing input). Replace the nested with a plain
; the wizard form already owns submission, so the inner form and its htmx attributes were redundant. Co-Authored-By: Claude Opus 4.8 --- src/clj/auto_ap/ssr/admin/transaction_rules.clj | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/clj/auto_ap/ssr/admin/transaction_rules.clj b/src/clj/auto_ap/ssr/admin/transaction_rules.clj index d163b9d4..803e709b 100644 --- a/src/clj/auto_ap/ssr/admin/transaction_rules.clj +++ b/src/clj/auto_ap/ssr/admin/transaction_rules.clj @@ -656,13 +656,7 @@ linear-wizard this :head "Transaction rule" :body (mm/default-step-body {} - [:form#my-form {:hx-ext "response-targets" - :hx-target-400 "#form-errors .error-content" - :hx-indicator "#submit" - :x-trap "true" - (if (:db/id (fc/field-value)) - :hx-put - :hx-post) (str (bidi/path-for ssr-routes/only-routes ::route/save))} + [:div#my-form {:x-trap "true"} [:fieldset {:class "hx-disable" :x-data (hx/json {:clientId (or (:db/id (:transaction-rule/client (fc/field-value))) (:transaction-rule/client (fc/field-value)))})}