mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
🐛 fix: fixed the topic link dropdown error (#10408)
* fix: fixed the topic link jump problem * fix: delete console.log
This commit is contained in:
@@ -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'}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user