🐛 fix: fixed the topic link dropdown error (#10408)

* fix: fixed the topic link jump problem

* fix: delete console.log
This commit is contained in:
Shinji-Li
2025-11-25 13:41:44 +08:00
committed by GitHub
parent d77288f925
commit 864e3d5aa3
2 changed files with 12 additions and 8 deletions

View File

@@ -97,15 +97,15 @@ const TopicContent = memo<TopicContentProps>(({ id, title, fav, showMore }) => {
},
...(isDesktop
? [
{
icon: <Icon icon={ExternalLink} />,
key: 'openInNewWindow',
label: t('actions.openInNewWindow'),
onClick: () => {
openTopicInNewWindow(activeId, id);
},
{
icon: <Icon icon={ExternalLink} />,
key: 'openInNewWindow',
label: t('actions.openInNewWindow'),
onClick: () => {
openTopicInNewWindow(activeId, id);
},
]
},
]
: []),
{
type: 'divider',
@@ -237,6 +237,7 @@ const TopicContent = memo<TopicContentProps>(({ id, title, fav, showMore }) => {
className="topic-more"
icon={MoreVertical}
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
}}
size={'small'}

View File

@@ -67,6 +67,9 @@ const TopicItem = memo<ConfigCellProps>(({ title, active, id, fav, threadId }) =
<Flexbox style={{ position: 'relative' }}>
<Link
onClick={(e) => {
if (e.button === 0 && (e.metaKey || e.ctrlKey)) {
return;
}
e.preventDefault();
toggleTopic(id);
toggleConfig(false);