From f011de6b5b3148bf07639c4f78385fa669a8a63b Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Thu, 21 Jul 2022 15:31:26 +0200 Subject: [PATCH] Cleaned up the modals iframe being in DOM when not shown --- .../src/components/modals/GenericDialog.js | 60 +++++++++---------- 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/apps/comments-ui/src/components/modals/GenericDialog.js b/apps/comments-ui/src/components/modals/GenericDialog.js index 15a68b7d68..408338d1b3 100644 --- a/apps/comments-ui/src/components/modals/GenericDialog.js +++ b/apps/comments-ui/src/components/modals/GenericDialog.js @@ -4,38 +4,36 @@ import Modal from './Modal'; const GenericDialog = (props) => { // The modal will cover the whole screen, so while it is hidden, we need to disable pointer events - const style = props.show ? {} : { - pointerEvents: 'none' - }; return ( - -
- -
- -
- {props.children} -
-
-
-
-
-
+ + +
+ +
+ +
+ {props.children} +
+
+
+
+
+
+
); };