diff options
author | bobzel <zzzman@gmail.com> | 2020-09-03 12:44:58 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-03 12:44:58 -0400 |
commit | 69868b04b7d2ffcf12aed0ca1b724d9596456c80 (patch) | |
tree | 7428c84a20c70f94849bfea2a30cbd5abc638c03 /src/client/views/MainView.tsx | |
parent | 58a211ee9d9b2650121399fd134012e0bd2c6c1e (diff) |
made import stack non-selectable
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r-- | src/client/views/MainView.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index a87a07b62..f9b3b1da8 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -170,6 +170,14 @@ export class MainView extends React.Component { window.addEventListener("drop", e => e.preventDefault(), false); // prevent default behavior of navigating to a new web page window.addEventListener("dragover", e => e.preventDefault(), false); document.addEventListener("pointerdown", this.globalPointerDown); + document.addEventListener("click", (e: MouseEvent) => { + if (!e.cancelBubble) { + const pathstr = (e as any)?.path.map((p: any) => p.classList?.toString()).join(); + if (pathstr.includes("libraryFlyout")) { + SelectionManager.DeselectAll(); + } + } + }); } initAuthenticationRouters = async () => { |