add stop propagation for hashtag

This commit is contained in:
fly_mc 2024-11-30 23:20:00 +08:00
parent 5af650215f
commit 8dd0c35a74

View file

@ -383,6 +383,9 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven
to: isNote ? `/tags/${encodeURIComponent(token.props.hashtag)}` : `/user-tags/${encodeURIComponent(token.props.hashtag)}`,
style: 'color:var(--MI_THEME-hashtag);',
behavior: props.linkNavigationBehavior,
onClick(ev: MouseEvent): void {
ev.stopPropagation();
},
}, `#${token.props.hashtag}`)];
}