-
Notifications
You must be signed in to change notification settings - Fork 4
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/#315] priority dropdown 취소 기능 구현 #317
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 정말 고생많으셨습니다!
Dropdown의 동작이 점점 복잡해지고, outsideclick 같은 기능을 고려하시는 걸 보니
headless ui라이브러리를 사용하면 훨씬 간편해질거같습니다.
추후 리팩토링해보면 좋겠습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
빌드에 실패했습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
빌드에 실패했습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
빌드에 실패했습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
빌드에 실패했습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
빌드에 실패했습니다.
🌀 해당 이슈 번호
🔹 어떤 것을 변경했나요?
🔹 어떻게 구현했나요?
드롭다운에 값이 채워졌을 때 x버튼을 렌더링 하도록 했고, 삭제 함수를 통해 해당 시간대의 priority값과 드롭다운의 선택된 값을 초기화
🔹 PR 포인트를 알려주세요!
PR이 늦은 이유.. 드롭다운 밖 영역을 클릭했을 때 닫히는 useOutSideClick 커스텀훅을 만들고 세개의 모달에 ref를 달아두어 사용하려고 했지만 map으로 동적 렌더링된 여러개의 컴포넌트에 ref를 붙이면 예상했던 것 과는 달리 마지막 컴포넌트에만 ref가 적용됩니다. 해당 이슈를 계속 알아보았지만, 잠시 스탑하고 해야될 일을 먼저 하겠습니다!
🔹 스크린샷을 남겨주세요!
2024-08-19.2.03.48.mov