From f5c2f5bc8710a965a0b52e2e414f62a2a459a94f Mon Sep 17 00:00:00 2001
From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com>
Date: Sun, 25 Aug 2024 04:26:12 -0400
Subject: border work

---
 src/client/views/MainView.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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

diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index d4467e536..9c350afc0 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -88,6 +88,7 @@ export class MainView extends ObservableReactComponent<{}> {
     public static Live: boolean = false;
     private _docBtnRef = React.createRef<HTMLDivElement>();
 
+    @observable private _keepContextMenuOpen: boolean = false;
     @observable private _windowWidth: number = 0;
     @observable private _windowHeight: number = 0;
     @observable private _dashUIWidth: number = 0; // width of entire main dashboard region including left menu buttons and properties panel (but not including the dashboard selector button row)
@@ -590,7 +591,10 @@ export class MainView extends ObservableReactComponent<{}> {
                 if (typeof targets[i].className === 'object') targClass = targets[i + 1].className.toString();
                 else break;
             }
-            !targClass.includes('contextMenu') && ContextMenu.Instance.closeMenu();
+            if (!targClass.includes('contextMenu')) {
+                console.log(targClass)
+                ContextMenu.Instance.closeMenu();
+            }
             !['timeline-menu-desc', 'timeline-menu-item', 'timeline-menu-input'].includes(targClass) && TimelineMenu.Instance.closeMenu();
         }
     });
-- 
cgit v1.2.3-70-g09d2

