mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
chore(react): fix configure languages open in background
This commit is contained in:
parent
e89162838e
commit
3ec2947c4f
@ -80,7 +80,7 @@ interface FormListItemOpts {
|
||||
disabled?: boolean;
|
||||
checked?: boolean | null;
|
||||
selected?: boolean;
|
||||
onClick?: () => void;
|
||||
onClick?: (e: MouseEvent) => void;
|
||||
triggerCommand?: CommandNames;
|
||||
description?: string;
|
||||
className?: string;
|
||||
|
@ -330,7 +330,10 @@ function NoteLanguageSwitch({ note }: { note?: FNote | null }) {
|
||||
})}
|
||||
|
||||
<FormListItem
|
||||
onClick={() => appContext.tabManager.openContextWithNote("_optionsLocalization", { activate: true })}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
appContext.tabManager.openContextWithNote("_optionsLocalization", { activate: true });
|
||||
}}
|
||||
>{t("note_language.configure-languages")}</FormListItem>
|
||||
</Dropdown>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user