Deaktivieren Sie die Taste Enter React-Hook-Form
const checkKeyDown = (e) => {
if (e.code === 'Enter') e.preventDefault();
};
<form onSubmit={handleSubmit(onSubmit)} onKeyDown={(e) => checkKeyDown(e)}>
// your steps here
</form>
tinydev