From 534801af2ca4d83a6cc23b1aa0d148cd80e378d8 Mon Sep 17 00:00:00 2001 From: hae-on Date: Fri, 6 Oct 2023 16:59:14 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=A2=8B=EC=95=84=EC=9A=94,=20?= =?UTF-8?q?=EB=B6=81=EB=A7=88=ED=81=AC=20=EB=B2=84=ED=8A=BC=20=ED=81=B4?= =?UTF-8?q?=EB=A6=AD=20=EC=8B=9C=20=EC=A1=B0=ED=9A=8C=EC=88=98=20=EC=9A=94?= =?UTF-8?q?=EC=B2=AD=20=EC=95=88=ED=95=98=EB=8F=84=EB=A1=9D=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/Article/Article.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/Article/Article.tsx b/frontend/src/components/Article/Article.tsx index a5d8e34bd..64a9c7457 100644 --- a/frontend/src/components/Article/Article.tsx +++ b/frontend/src/components/Article/Article.tsx @@ -30,6 +30,7 @@ const Article = ({ const toggleBookmark: React.MouseEventHandler = (e) => { e.preventDefault(); + e.stopPropagation(); bookmarkRef.current = !bookmarkRef.current; setBookmark((prev) => !prev); @@ -41,6 +42,7 @@ const Article = ({ const toggleLike: React.MouseEventHandler = (e) => { e.preventDefault(); + e.stopPropagation(); likeRef.current = !likeRef.current; setLike((prev) => !prev);