mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 10:16:32 +02:00
Prevent submitting form from name field
This commit is contained in:
parent
922a23812c
commit
88943ce1ba
1 changed files with 6 additions and 0 deletions
|
@ -100,6 +100,12 @@ const ParticipantRowForm: React.ForwardRefRenderFunction<
|
|||
}, 100);
|
||||
}
|
||||
}}
|
||||
onKeyPress={(e) => {
|
||||
if (e.code === "Enter") {
|
||||
e.preventDefault();
|
||||
checkboxRefs.current[0]?.focus();
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
|
Loading…
Add table
Reference in a new issue