From de11ff84539a24a18befb9d85ce55389f653036f Mon Sep 17 00:00:00 2001 From: Matt P Date: Thu, 29 Feb 2024 21:45:10 -0600 Subject: [PATCH] Prevent form from clearing on "enter" When modifying QRScout for my team, we found that pressing the "enter" key causes the form to reset. This should fix that problem. --- src/app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.tsx b/src/app.tsx index 58bdc2a..a02a6ef 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -20,7 +20,7 @@ export function App() { setShowQR(false)} /> -
+ e.preventDefault()}>
setShowQR(true)} />