From 15dc582a7744da18ad0d4c4a50bf3340b0b24132 Mon Sep 17 00:00:00 2001 From: juancwu Date: Sat, 7 Feb 2026 19:50:09 +0000 Subject: [PATCH] fix: expense form reset incorrectly after top-up submission --- internal/ui/components/expense/expense.templ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ui/components/expense/expense.templ b/internal/ui/components/expense/expense.templ index 2f521f8..639e91d 100644 --- a/internal/ui/components/expense/expense.templ +++ b/internal/ui/components/expense/expense.templ @@ -24,7 +24,7 @@ type AddExpenseFormProps struct { } func (p AddExpenseFormProps) formAttrs() templ.Attributes { - closeScript := "on htmx:afterOnLoad if event.detail.xhr.status == 200 then call window.tui.dialog.close('" + p.DialogID + "') then reset() me end" + closeScript := "on htmx:afterOnLoad if event.detail.xhr.status == 200 then call window.tui.dialog.close('" + p.DialogID + "') then reset() me then show #item-selector-section end" if p.FromOverview { return templ.Attributes{ "hx-post": "/app/spaces/" + p.Space.ID + "/expenses?from=overview", -- 2.43.0