Skip to content

Commit e6f90c9

Browse files
committed
fix: prevent default button behavior in CopyButton component
1 parent 69d3a3d commit e6f90c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/CopyButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const CopyButton = ({
4141
<button
4242
onClick={(e) => {
4343
e.stopPropagation();
44+
e.preventDefault();
4445
handleCopy();
4546
}}
4647
onMouseEnter={handleMouseEnter}

0 commit comments

Comments
 (0)