Skip to content

Commit 271b953

Browse files
Merge pull request #644 from sudhanshutech/fix/clickevent
Fix click event for tooltip
2 parents 4aad9f7 + e804e84 commit 271b953

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/custom/Markdown/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ export const RenderMarkdownTooltip: React.FC<RenderMarkdownProps> = ({ content }
6666
a: ({ ...props }) => (
6767
<StyledMarkdown
6868
onClick={(e) => {
69-
e.preventDefault();
7069
window.open(props.href, '_blank');
70+
e.stopPropagation();
7171
}}
72-
href={props.href}
72+
as="a"
7373
>
7474
{props.children}
7575
</StyledMarkdown>

0 commit comments

Comments
 (0)