강의

멘토링

로드맵

Inflearn Community Q&A

yongja3227's profile image
yongja3227

asked

Learn by Following Along Node, React Series - Building a Shopping Mall Site [Complete Renewal]

확인에서 넘어가지 않을 때.. 어떡하면 좋을까요? (해결)

Written on

·

316

1

해당 강의 질문 글들에서 제시됐던 솔루션 방식들을 모두 사용해봤지만, 여전히 '확인'을 누르면 반응이 없습니다. 마지막으로 모든 아이피 허용 변경 후 아이디를 새로 만들어도 똑같네요...

1. '확인'을 누를 때 반응은 없지만 'uploads' 폴더 안에 사진이 저장되긴 합니다.

2. 공란이 있는 상태에서 '확인'을 누르면 반응은 없지만 1번처럼 사진은 저장이 됩니다.

뭐가 문제일까요... 모든 경우의 수와 코드 하나하나 비교도 해봤습니다ㅠ

웹앱mongodbreactnodejsredux

Answer 3

5

The comment has been deleted

좋은 정보 감사합니다^^

event.preventDafault is not a function

이 오류는 antd 문제가 아니고 오타때문에 뜨는겁니다

event.preventDafault();가 아니고

event.preventDefault(); 로 오타를 고치세요

1

antd로 쓰려면 이렇게 바꾸면 되더라구요! onFinish는 기본적으로 e.preventDefault() 적용되어있다구 하더라구요 ㅎㅎ 혹시 안되시는 분은 참고하세요!

<Form onFinish={submitHandler}>
<Button htmlType="submit">확인</Button>
yongja님의 프로필 이미지
yongja
Questioner

좋은 정보 공유 감사합니다!

1

yongja님의 프로필 이미지
yongja
Questioner

UploadProductPage.js 에서 antd와 관련된 모든것을 삭제하니 정상적으로 잘 작동하네요ㅎㅎ

저처럼 모든 아이피 허용을 해도 응답이 없으신 분들은 페이지내에 antd와 관련된 것들을  모두 지워보세요~ css가 조금 귀찮긴 하겠지만요^^

yongja3227's profile image
yongja3227

asked

Ask a question