Skip to content

Commit

Permalink
frontent EditorDialog: Don't render Dialog until it's open
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Dubenko <[email protected]>
  • Loading branch information
sniok authored and joaquimrocha committed Dec 11, 2024
1 parent e078687 commit ec42137
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/components/common/Resource/EditorDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ export default function EditorDialog(props: EditorDialogProps) {

const dialogTitleId = useId('editor-dialog-title-');

if (!other.open && !other.keepMounted) {
return null;
}

return (
<Dialog
title={dialogTitle}
Expand Down

0 comments on commit ec42137

Please sign in to comment.