Skip to content

Commit

Permalink
Fix vendor note form submit override
Browse files Browse the repository at this point in the history
Caused enter to submit the form, effectively reloading the page without
saving the note.
  • Loading branch information
jlaunonen committed Sep 7, 2024
1 parent 8b303de commit 78c7ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kirppu/static_src/jst/vendor_notes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function AddVendorNote({withButton, withConfirm}) {
noteInput.disabled = !this.checked
}
return (
<form onSubmit={() => false}>
<form onsubmit={() => false}>
{withConfirm && <div className="checkbox" style="min-width: 8em;">
<label>
<input type="checkbox" id="enable_note" onchange={toggle}/>
Expand Down

0 comments on commit 78c7ec5

Please sign in to comment.