Skip to content

Commit 309306a

Browse files
committed
[feat] keep 버튼 이벤트 전파 막기 추가
1 parent 17c821d commit 309306a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shared/components/keep/Keep.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ interface Props {
88

99
function Keep({ className }: Props) {
1010
const [isClick, setIsClick] = useState(false);
11-
const handleClick = () => {
11+
const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {
12+
e.stopPropagation();
1213
setIsClick(!isClick);
1314
};
1415

0 commit comments

Comments
 (0)