fix: 멤버 리스트 내 커피챗 뱃지 클릭시 멤버 카드 클릭과 함께 작동되는 문제 해결 #1643
Merged
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.
🤫 쉿, 나한테만 말해줘요. 이슈넘버
🧐 어떤 것을 변경했어요~?
커피챗 버튼 클릭시 멤버 카드의 link 동작을 막기 위해 e.preventDefault 추가
🤔 그렇다면, 어떻게 구현했어요~?
멤버 카드가 Link태그로 이루어져있어서, 그 내부에 있는 커피챗 버튼을 누를 때도 a태그의 href동작이 발생하게 됩니다.
이 동작을 방지하고 커피챗 상세로만 이동시키기 위해, 커피챗 버튼 onClick에 e.preventDefault()를 추가했습니다.
❤️🔥 당신이 생각하는 PR포인트, 내겐 매력포인트.
📸 스크린샷, 없으면 이것 참,, 섭섭한데요?
AS-IS
2024-11-03.12.00.53.mov
TO-BE
2024-11-03.12.01.12.mov