From d1c04cd2ca8d15ff9bd5158bbd5b51eb3b8a629d Mon Sep 17 00:00:00 2001 From: Chris Veleris Date: Sat, 5 Jul 2025 21:16:58 +0300 Subject: [PATCH] Fix an issue with priority dropdown not persisting --- frontend/components/Shared/PriorityDropdown.tsx | 7 ++++++- public/locales/de/translation.json | 3 +++ public/locales/en/translation.json | 3 +++ public/locales/es/translation.json | 3 +++ public/locales/jp/translation.json | 3 +++ public/locales/ua/translation.json | 3 +++ 6 files changed, 21 insertions(+), 1 deletion(-) diff --git a/frontend/components/Shared/PriorityDropdown.tsx b/frontend/components/Shared/PriorityDropdown.tsx index fa44fe7..92d2805 100644 --- a/frontend/components/Shared/PriorityDropdown.tsx +++ b/frontend/components/Shared/PriorityDropdown.tsx @@ -42,7 +42,12 @@ const PriorityDropdown: React.FC = ({ value, onChange }) }; const handleClickOutside = (event: MouseEvent) => { - if (dropdownRef.current && !dropdownRef.current.contains(event.target as Node)) { + if ( + dropdownRef.current && + !dropdownRef.current.contains(event.target as Node) && + menuRef.current && + !menuRef.current.contains(event.target as Node) + ) { setIsOpen(false); } }; diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json index adfb5f2..2817196 100644 --- a/public/locales/de/translation.json +++ b/public/locales/de/translation.json @@ -231,6 +231,9 @@ "giveMeSomethingElse": "Gib mir etwas anderes" }, "task": { + "suggestions": { + "short": "Versuchen Sie, spezifischer zu beschreiben, was getan werden muss" + }, "nameHelper": { "title": "Machen Sie es beschreibender!", "suggestion": "Versuchen Sie, mehr Details hinzuzufügen wie \"Zahnarzt anrufen um Reinigungstermin zu vereinbaren\" anstatt nur \"Zahnarzt anrufen\"" diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 05a08d0..b08b1a4 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -550,6 +550,9 @@ "updatedSuccessfully": "updated successfully!", "deleted": "Task", "deletedSuccessfully": "deleted successfully!", + "suggestions": { + "short": "Try to be more specific about what needs to be done" + }, "nameHelper": { "title": "Make it more descriptive!", "suggestion": "Try adding more details like \"Call dentist to schedule cleaning appointment\" instead of just \"Call dentist\"" diff --git a/public/locales/es/translation.json b/public/locales/es/translation.json index fbc23f7..19a08e8 100644 --- a/public/locales/es/translation.json +++ b/public/locales/es/translation.json @@ -367,6 +367,9 @@ "createSuccess": "Tarea creada exitosamente", "createError": "Error al crear tarea", "saveAsTask": "Guardar como Tarea", + "suggestions": { + "short": "Trata de ser más específico acerca de lo que necesita hacerse" + }, "nameHelper": { "title": "¡Hazlo más descriptivo!", "suggestion": "Intenta agregar más detalles como \"Llamar al dentista para programar cita de limpieza\" en lugar de solo \"Llamar dentista\"" diff --git a/public/locales/jp/translation.json b/public/locales/jp/translation.json index 10757e6..26173d7 100644 --- a/public/locales/jp/translation.json +++ b/public/locales/jp/translation.json @@ -394,6 +394,9 @@ "successMessage": "プロフィールが正常に更新されました!" }, "task": { + "suggestions": { + "short": "何をする必要があるかについて、より具体的に記述してください" + }, "nameHelper": { "title": "もっと詳しく記述しましょう!", "suggestion": "「歯医者に電話」ではなく「歯医者に電話してクリーニングの予約をする」のように詳細を追加してみてください" diff --git a/public/locales/ua/translation.json b/public/locales/ua/translation.json index 5c292ea..a95a870 100644 --- a/public/locales/ua/translation.json +++ b/public/locales/ua/translation.json @@ -275,6 +275,9 @@ "successMessage": "Профіль успішно оновлено!" }, "task": { + "suggestions": { + "short": "Спробуйте бути більш конкретними щодо того, що потрібно зробити" + }, "nameHelper": { "title": "Зробіть це більш описовим!", "suggestion": "Спробуйте додати більше деталей, наприклад \"Подзвонити стоматологу для запису на чистку\" замість просто \"Подзвонити стоматологу\""