Skip to content

Commit

Permalink
Merge pull request #644 from sudhanshutech/fix/clickevent
Browse files Browse the repository at this point in the history
Fix click event for tooltip
  • Loading branch information
dragon-slayer875 committed Jun 7, 2024
2 parents 4aad9f7 + e804e84 commit 271b953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/custom/Markdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ export const RenderMarkdownTooltip: React.FC<RenderMarkdownProps> = ({ content }
a: ({ ...props }) => (
<StyledMarkdown
onClick={(e) => {
e.preventDefault();
window.open(props.href, '_blank');
e.stopPropagation();
}}
href={props.href}
as="a"
>
{props.children}
</StyledMarkdown>
Expand Down

0 comments on commit 271b953

Please sign in to comment.