From 4bedca2bf5f3a6aaef004e7a85a9bfab4a9deede Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Thu, 21 Sep 2023 17:22:41 +0800
Subject: Fix #1396.

---
 FrontEnd/src/components/dialog/index.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'FrontEnd/src/components/dialog/index.tsx')

diff --git a/FrontEnd/src/components/dialog/index.tsx b/FrontEnd/src/components/dialog/index.tsx
index 17db8fd0..7b24fc57 100644
--- a/FrontEnd/src/components/dialog/index.tsx
+++ b/FrontEnd/src/components/dialog/index.tsx
@@ -51,7 +51,8 @@ export function useDialog<D extends string>(
       dialogs.map((d) => [
         d,
         {
-          key: `${d}-${dialogKeys[d]}`,
+          // TODO: Fix the animation problem, maybe we have to use a better way to re-enable this.
+          //key: `${d}-${dialogKeys[d]}`,
           open: dialog === d,
           onClose: () => {
             switchDialog(null);
-- 
cgit v1.2.3

