Prevent submitting form from name field

This commit is contained in:
Luke Vella 2022-06-04 09:13:01 +01:00
parent 922a23812c
commit 88943ce1ba

View file

@ -100,6 +100,12 @@ const ParticipantRowForm: React.ForwardRefRenderFunction<
}, 100);
}
}}
onKeyPress={(e) => {
if (e.code === "Enter") {
e.preventDefault();
checkboxRefs.current[0]?.focus();
}
}}
/>
</div>
)}