Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: close popup on lang select

ascarbek521fe13cfb08
diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/LanguageSelectPopup.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/LanguageSelectPopup.tsx
index fcb65cbba4..f73ddb2bca 100644
--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/LanguageSelectPopup.tsx
+++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/LanguageSelectPopup.tsx
@@ -29,7 +29,10 @@ const supportedLanguages: { key: string; title: string }[] = [
export const LanguageSelectPopup = ({ onClose }: { onClose: () => void }) => {
const items: IPopupItem[] = supportedLanguages.map<IPopupItem>((item) => ({
- onClick: () => void i18n.changeLanguage(item.key),
+ onClick: () => {
+ void i18n.changeLanguage(item.key);
+ onClose();
+ },
title: item.title,
icon: <></>,
}));