Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: input창에서 enter를 누를시에 다음 input창으로 이동 #269

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Yoon-Hae-Min
Copy link
Contributor

관련 이슈

close #256

예상 리뷰 시간

1-min

추가 또는 변경사항

게시글 작성시에 title에서 enter를 누를시에 submit이 되는 부분을 수정하였습니다

스크린샷

45345345

기타

const index = Array.prototype.indexOf.call(form, event.target);
방법이 form(event.target.form)부분 즉 from객체에서 event.target 즉 현재 input창의 indexof를 찾아 내는 것 입니다 array함수를 form에 call해서 indexOf를 사용할수 있도록 하는것 같습니다.
그러면 form.indexOf(event.target); 으로 쓰면 안되는거냐 할텐데 form은 array가 아닌 객체로 indexOf를 사용할수 없습니다
자세한건 js를 깊게 파봐야 하지만 일단은 이렇게 이해하고 있습니다.

@Yoon-Hae-Min Yoon-Hae-Min added the 🐛 bug 버그 이슈 label Sep 27, 2022
@Yoon-Hae-Min Yoon-Hae-Min self-assigned this Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug 버그 이슈
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: 게시글 작성 페이지에서 제목 입력 후 엔터 시 submit되는 문제
2 participants