-
Notifications
You must be signed in to change notification settings - Fork 3
[Feat/#23] 대여기록 페이지 퍼블리싱 및 alert창 구현 #38
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
Conversation
sinji2102
left a comment
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.
고생하셨습니다!! 모바일 레이아웃 변경도 해주시다니... 최고예용 🫶
헤더 움직이는 이슈는 API 연결하면서 제가 이슈 하나 파서 수정하겠습니다!
| <button | ||
| type="button" | ||
| onClick={isDropdownVisible ? undefined : handleDropdown} | ||
| className="relative flex items-center gap-2.5" | ||
| > |
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.
p1) 이 부분이 아마 드롭다운을 여는 버튼인 것 같은데... 저도 드롭다운이 안 닫히는 문제를 겪었는데 현진님이 추천해 주신 코드로 수정해도 같은 문제가 반복되더라고요! 제 예상에서는 아마 이벤트 버블링으로 인한 이슈인 것 같은데... 뒤에 투명 배경을 하나 더 삽입하는 방법으로 고칠 수 있을 것 같긴 한데 아직 시도는 해보지 못해서... 제가 리팩토링 때 수정하겠습니다!
현진님 코멘트가 저한테 안 보였어서.... 머지하구 다른 부분에 코드들이 쓰이고 있어서 리팩토링 할 때 같이 수정하겠습니다! 일단 제가 발견한 해결책은
<button
type="button"
onClick={isDropdownVisible ? undefined : handleDropdown}
className={`flex items-center gap-2.5 ${isDropdownVisible && 'pointer-events-none'}`}
>
위처럼 className에 드롭다운 속성에 따라 버튼을 클릭할 수 없도록 막으면 이벤트 버블링....을 일단 막는 거처럼 보이게 할 수 있을 것 같아요!
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.
앗 그리고 history 페이지 코드에서 타입 관련해서 경고가 떠있을텐데 해당 내용은 api 연결 하면서 수정하도록 하겠습니다!!
📌 관련 이슈번호
🎟️ PR 유형
어떤 변경 사항이 있나요?
Check List
✅ Key Changes
📢 To Reviewers
📸 스크린샷
🔗 참고 자료