feat: input창에서 enter를 누를시에 다음 input창으로 이동#269
Open
Yoon-Hae-Min wants to merge 1 commit intodevelopfrom
Open
Conversation
kangju2000
approved these changes
Oct 4, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
관련 이슈
close #256
예상 리뷰 시간
1-min
추가 또는 변경사항
게시글 작성시에 title에서 enter를 누를시에 submit이 되는 부분을 수정하였습니다
스크린샷
기타
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를 깊게 파봐야 하지만 일단은 이렇게 이해하고 있습니다.