-
Notifications
You must be signed in to change notification settings - Fork 2
에디터 버그 수정 #101
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
Merged
Merged
에디터 버그 수정 #101
Conversation
This file contains 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
- react-hook-form의 Controller 컴포넌트로 content 필드를 제어하도록 수정 - title, content 유효성 검사 시 toast 메시지와 focus 설정 추가 - content의 길이를 실시간으로 감시하여 표시되도록 watch 사용 - 에디터 내용 변경 시 textLength 업데이트 반영
- 잘못된 필드명 'memo'를 'title'로 수정
qaws7791
reviewed
Oct 16, 2024
- postSchema에서 memo필드를 제거하여 역할을 분리 - 독립적인 memoSchema 객체를 생성하고 memo 필드의 유효성 검증을 별도로 정의
c7158f4
to
6ca1fac
Compare
updatePost에 memo를 null로 넘겨서 글 수정하면 메모가 사라져요 |
기존 memo 유지될수 있도록 updatePost 시 memo 전달
@qaws7791 가져왔던 memo 를 updatePost 로 넘기도록 수정하였습니다! |
- Button type 을 submit 에서 button 으로 변경 - click event handler 에서 handleSubmit 호출 - 2000자 넘는 순간 에러가 발생해야하기 때문에 mode 를 onChange 로 변경
- keydown 이벤트에서 e.preventDefault 호출하여 폼 제출 막음
- useCellValues로 currentBlockType 값 구독 - ToolbarToggleGroup 에 value 전달
@qaws7791 이거저거 시도하다가 왜 됐는지 모르겠는데 갑자기 로그인이 돼서 테스트해보다가 이슈 발생한 부분 추가적으로 수정하였습니다! |
확인했습니다. 고생하셨어요 👍 |
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.
포스트 내용 유효성 검사 추가 Fixes #42
포스트 제목이 반영되지 않는 이슈 수정 Fixes #100
메모 등록 시 바로 수정 완료로 바뀌는 버그 수정
태그 등록 되지 않는 이슈 수정
툴바 Heading 토글 그룹에서 블록 타입 selected 표시