Skip to content

Commit

Permalink
Merge pull request #28 from Situs84/patch-1
Browse files Browse the repository at this point in the history
Prevent form from clearing on "enter"
  • Loading branch information
tytremblay authored Mar 1, 2024
2 parents d81405b + de11ff8 commit da5e040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function App() {
</h1>
<QRModal show={showQR} onDismiss={() => setShowQR(false)} />

<form className="w-full px-4">
<form className="w-full px-4" onSubmit={e => e.preventDefault()}>
<div className="mt-4 grid grid-cols-1 gap-4 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5">
<Sections />
<CommitAndResetSection onCommit={() => setShowQR(true)} />
Expand Down

0 comments on commit da5e040

Please sign in to comment.