Skip to content

Commit 78c7ec5

Browse files
committed
Fix vendor note form submit override
Caused enter to submit the form, effectively reloading the page without saving the note.
1 parent 8b303de commit 78c7ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kirppu/static_src/jst/vendor_notes.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function AddVendorNote({withButton, withConfirm}) {
1010
noteInput.disabled = !this.checked
1111
}
1212
return (
13-
<form onSubmit={() => false}>
13+
<form onsubmit={() => false}>
1414
{withConfirm && <div className="checkbox" style="min-width: 8em;">
1515
<label>
1616
<input type="checkbox" id="enable_note" onchange={toggle}/>

0 commit comments

Comments
 (0)