Skip to content

Commit

Permalink
fix: link hover handler
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed May 22, 2024
1 parent 4070998 commit 7d6dbb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/MemoContent/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const Link: React.FC<Props> = ({ text, url }: Props) => {
const [linkMetadata, setLinkMetadata] = useState<LinkMetadata | undefined>();

const handleMouseEnter = async () => {
setShowTooltip(true);
if (!initialized) {
try {
const linkMetadata = await markdownServiceClient.getLinkMetadata({ link: url });
Expand All @@ -32,7 +33,6 @@ const Link: React.FC<Props> = ({ text, url }: Props) => {
}
setInitialized(true);
}
setTimeout(() => setShowTooltip(true), 0);
};

return (
Expand Down

0 comments on commit 7d6dbb9

Please sign in to comment.