Skip to content

Commit

Permalink
fix: 투표 항목 이미지 클릭 시 투표 버튼 활성화 되는 현상
Browse files Browse the repository at this point in the history
  • Loading branch information
wildcatco committed Aug 3, 2023
1 parent 6341ff9 commit d098223
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/feed/PostDetail/PostVote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,10 @@ export default function PostVote({
src={option.image}
alt={option.label}
className="absolute right-0 aspect-square h-full object-cover"
onClick={() => setZoomedImage(option.image)}
onClick={(e) => {
setZoomedImage(option.image);
e.stopPropagation();
}}
/>
)}
</button>
Expand Down

0 comments on commit d098223

Please sign in to comment.