Skip to content

Commit

Permalink
hotfix: 이력서 기본정보 희망직무 엔터 키 막기
Browse files Browse the repository at this point in the history
  • Loading branch information
leeminhee119 committed Dec 1, 2023
1 parent 2718004 commit 1436af2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/organisms/ResumeBasicInput/BasicInfoForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ const BasicInfoForm = ({
formState: { errors },
} = useForm<BasicInfo>();

const onSubmit: SubmitHandler<BasicInfo> = (data) => {
const onSubmit: SubmitHandler<BasicInfo> = (data, event) => {
if (event?.currentTarget.key === 'Enter') {
event.preventDefault();
}

const resumeBasicInfo = data;
resumeBasicInfo.skills = skills;
patchResumeBasicInfo(
Expand Down

0 comments on commit 1436af2

Please sign in to comment.