Skip to content

Commit

Permalink
[feat] 이벤트 전파 막음
Browse files Browse the repository at this point in the history
  • Loading branch information
zestlee1106 committed Nov 1, 2023
1 parent caf7be8 commit 3a8469d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Chip/Chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function Chip({ label, onDelete, clicked, onChipClick, onlyText }
}, [clicked]);

const handleDelete = (e: MouseEvent) => {
e.preventDefault();
e.stopPropagation();
if (onDelete) {
onDelete();
}
Expand All @@ -42,7 +42,7 @@ export default function Chip({ label, onDelete, clicked, onChipClick, onlyText }
</Typography>
{!onlyText && (
<button className="focus:outline-none" onClick={handleDelete} aria-label="Delete">
<Close width={10.5} height={10.5} className="m-[7px] stroke-r1 stroke-[2]" />
<Close width={10.5} height={10.5} className="m-[7px] stroke-r1 stroke-[2] z-20" />
</button>
)}
</div>
Expand Down

0 comments on commit 3a8469d

Please sign in to comment.