From d1951cbbc0bf64bac45d8e04024d222d979d33b3 Mon Sep 17 00:00:00 2001 From: Ine Date: Fri, 20 Feb 2026 16:44:40 +0100 Subject: [PATCH] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- pkg/web/components/comment.templ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/web/components/comment.templ b/pkg/web/components/comment.templ index 60b6214..bb08ce2 100644 --- a/pkg/web/components/comment.templ +++ b/pkg/web/components/comment.templ @@ -75,7 +75,7 @@ templ CommentForm(props CommentFormProps) { hx-post={ "/issues/" + props.IssueID + "/comments" } hx-target="#comments-list" hx-swap="beforeend" - hx-on::after-request="this.reset()" + hx-on::after-success="this.reset()" > @base.Input(base.InputProps{ Name: "author",