From 9e2ce680542ae495be6e9fd01320a1c5beceffd2 Mon Sep 17 00:00:00 2001
From: Bob Zeleznik <zzzman@gmail.com>
Date: Thu, 17 Oct 2019 07:52:42 -0400
Subject: turned off display of dialogs when they're not visible

---
 src/client/views/MainViewModal.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/client/views/MainViewModal.tsx')

diff --git a/src/client/views/MainViewModal.tsx b/src/client/views/MainViewModal.tsx
index b7fdd6168..221a0260a 100644
--- a/src/client/views/MainViewModal.tsx
+++ b/src/client/views/MainViewModal.tsx
@@ -17,7 +17,7 @@ export default class MainViewModal extends React.Component<MainViewOverlayProps>
         let p = this.props;
         let dialogueOpacity = p.dialogueBoxDisplayedOpacity || 1;
         let overlayOpacity = p.overlayDisplayedOpacity || 0.4;
-        return (
+        return !p.isDisplayed ? (null) : (
             <div style={{ pointerEvents: p.isDisplayed ? p.interactive ? "all" : "none" : "none" }}>
                 <div
                     className={"dialogue-box"}
-- 
cgit v1.2.3-70-g09d2

