Skip to content

Commit

Permalink
Merge pull request #148 from /issues/144
Browse files Browse the repository at this point in the history
enterで入力するとreact-fook-formのregistar()が動作する前に実績を作成してしまうのでとりあえずEnterを無効化
  • Loading branch information
nasubi-dev authored Sep 6, 2024
2 parents cdc4948 + f4ab9a9 commit b343378
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/pages/create/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,7 @@ function Loaded({
};

return (
<form
// eslint-disable-next-line @typescript-eslint/no-misused-promises
onSubmit={handleSubmit(onSubmit, (e) => {
// eslint-disable-next-line no-console
console.error("Form validation failed", e);
})}
>
<form>
<FormStyle align="center" direction="column" justify="center">
<AvatarContainer>
<Popover.Root onOpenChange={setPopoverOpened} open={isPopoverOpened}>
Expand Down Expand Up @@ -348,7 +342,12 @@ function Loaded({
<Box mb="auto">
<SubmitButton
disabled={isSubmitting}
type="submit"
// eslint-disable-next-line @typescript-eslint/no-misused-promises
onClick={handleSubmit(onSubmit, (e) => {
// eslint-disable-next-line no-console
console.error("Form validation failed", e);
})}
type="button"
value="実績を追加する"
/>
</Box>
Expand Down

0 comments on commit b343378

Please sign in to comment.