summaryrefslogtreecommitdiff
path: root/web/templates/shopping-mode.html
diff options
context:
space:
mode:
Diffstat (limited to 'web/templates/shopping-mode.html')
-rw-r--r--web/templates/shopping-mode.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/templates/shopping-mode.html b/web/templates/shopping-mode.html
index 9e21ac6..88d8561 100644
--- a/web/templates/shopping-mode.html
+++ b/web/templates/shopping-mode.html
@@ -74,7 +74,7 @@
<form hx-post="/shopping/add"
hx-target="#shopping-items"
hx-swap="innerHTML"
- hx-on::after-request="this.reset()"
+ hx-on::after-request="if(event.detail.successful) this.reset();"
class="flex gap-2">
<input type="hidden" name="store" value="{{.StoreName}}">
<input type="hidden" name="mode" value="shopping-mode">