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

[hooks] useInput hooks 개선 #57

Open
1 task
live-small opened this issue May 8, 2022 · 0 comments
Open
1 task

[hooks] useInput hooks 개선 #57

live-small opened this issue May 8, 2022 · 0 comments
Assignees
Labels
refactor have to refactor

Comments

@live-small
Copy link
Member

useInput

onChange 이벤트 핸들러에서, 공백처리를 추가해 isValid를 제어하도록 개선하려고 한다.

개선 이유는 게시글 댓글입력 input, DM input에서 공백만 입력할 경우엔 제출버튼을 활성화시키지 않도록 하기 위함이다.
onChange 이벤트 발생시, trim으로 공백인지 체크해 isValid를 false로 두고, isValid 값으로 버튼 활성화에 이용하면 된다.

관련 pr

#47 (comment)

Todo

  • 브랜치파서 작업
@live-small live-small self-assigned this May 8, 2022
@live-small live-small added the refactor have to refactor label Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor have to refactor
Projects
None yet
Development

No branches or pull requests

1 participant