From 3722916752fe03a0deb561756892e608f6e75a20 Mon Sep 17 00:00:00 2001 From: Alex Chan Date: Sun, 9 Nov 2025 14:13:49 -0700 Subject: [PATCH] fix app submission --- app/routes/app.qrcodes.$id.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/routes/app.qrcodes.$id.jsx b/app/routes/app.qrcodes.$id.jsx index a7bf0cc..786fb64 100644 --- a/app/routes/app.qrcodes.$id.jsx +++ b/app/routes/app.qrcodes.$id.jsx @@ -118,7 +118,9 @@ export default function QRCodeForm() { // [START use-submit] const submit = useSubmit(); - function handleSave() { + function handleSave(event) { + event.preventDefault(); + const data = { title: formState.title, productId: formState.productId || "", @@ -136,7 +138,8 @@ export default function QRCodeForm() { // [END use-submit] // [START save-bar] - function handleReset() { + function handleReset(event) { + event.preventDefault(); setFormState(initialFormState); window.shopify.saveBar.hide("qr-code-form"); }