chore(react): fix configure languages open in background

This commit is contained in:
Elian Doran 2025-08-25 14:48:13 +03:00
parent e89162838e
commit 3ec2947c4f
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View File

@ -80,7 +80,7 @@ interface FormListItemOpts {
disabled?: boolean; disabled?: boolean;
checked?: boolean | null; checked?: boolean | null;
selected?: boolean; selected?: boolean;
onClick?: () => void; onClick?: (e: MouseEvent) => void;
triggerCommand?: CommandNames; triggerCommand?: CommandNames;
description?: string; description?: string;
className?: string; className?: string;

View File

@ -330,7 +330,10 @@ function NoteLanguageSwitch({ note }: { note?: FNote | null }) {
})} })}
<FormListItem <FormListItem
onClick={() => appContext.tabManager.openContextWithNote("_optionsLocalization", { activate: true })} onClick={(e) => {
e.stopPropagation();
appContext.tabManager.openContextWithNote("_optionsLocalization", { activate: true });
}}
>{t("note_language.configure-languages")}</FormListItem> >{t("note_language.configure-languages")}</FormListItem>
</Dropdown> </Dropdown>