From ec42137af55e67ed3c605ffe18e70525c8aa35c7 Mon Sep 17 00:00:00 2001 From: Oleksandr Dubenko Date: Wed, 11 Dec 2024 13:53:04 +0100 Subject: [PATCH] frontent EditorDialog: Don't render Dialog until it's open Signed-off-by: Oleksandr Dubenko --- frontend/src/components/common/Resource/EditorDialog.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/components/common/Resource/EditorDialog.tsx b/frontend/src/components/common/Resource/EditorDialog.tsx index 2c182d6070..8eefc983d7 100644 --- a/frontend/src/components/common/Resource/EditorDialog.tsx +++ b/frontend/src/components/common/Resource/EditorDialog.tsx @@ -404,6 +404,10 @@ export default function EditorDialog(props: EditorDialogProps) { const dialogTitleId = useId('editor-dialog-title-'); + if (!other.open && !other.keepMounted) { + return null; + } + return (