Skip to content

Commit

Permalink
fix: Avoid type reload on submit
Browse files Browse the repository at this point in the history
type="submit" on sl-button causes a full page reload
due to form submit.
  • Loading branch information
romshark committed Nov 12, 2024
1 parent 94ba91b commit ec24a7c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/template/template.templ
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ templ componentOrderForm(
if !form.IsValid() {
disabled
}
type="submit"
hx-post="/orders/"
hx-swap="innerHTML"
hx-target="#viewport"
Expand Down

0 comments on commit ec24a7c

Please sign in to comment.