From 3ec2947c4f8d1719f5d4f6cafbccdf2eb4fad7eb Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 25 Aug 2025 14:48:13 +0300 Subject: [PATCH] chore(react): fix configure languages open in background --- apps/client/src/widgets/react/FormList.tsx | 2 +- apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/react/FormList.tsx b/apps/client/src/widgets/react/FormList.tsx index 37efafdf2..74f501b7b 100644 --- a/apps/client/src/widgets/react/FormList.tsx +++ b/apps/client/src/widgets/react/FormList.tsx @@ -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; diff --git a/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx b/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx index 45d6d3999..243de2fc8 100644 --- a/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx +++ b/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx @@ -330,7 +330,10 @@ function NoteLanguageSwitch({ note }: { note?: FNote | null }) { })} appContext.tabManager.openContextWithNote("_optionsLocalization", { activate: true })} + onClick={(e) => { + e.stopPropagation(); + appContext.tabManager.openContextWithNote("_optionsLocalization", { activate: true }); + }} >{t("note_language.configure-languages")}