diff options
| author | bobzel <zzzman@gmail.com> | 2022-06-08 12:44:36 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-06-08 12:44:36 -0400 |
| commit | 5157f0c500b01a635c373cc661a2588ef7506d79 (patch) | |
| tree | b148024f3b0639e28988046dd92aeed0ea7e4b66 /src/client/views/collections/CollectionDockingView.tsx | |
| parent | 7ab50d37d38a91d564cf3150be35a68d11bdcffe (diff) | |
added context menu back to tab's via the doc icon. made docicon draggable and clickable. removed collectiondockingviewmenu.
Diffstat (limited to 'src/client/views/collections/CollectionDockingView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index 745565ff5..476ffaf81 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -362,7 +362,8 @@ export class CollectionDockingView extends CollectionSubView() { const htmlTarget = e.target as HTMLElement; window.addEventListener("mouseup", this.onPointerUp); if (!htmlTarget.closest("*.lm_content") && (htmlTarget.closest("*.lm_tab") || htmlTarget.closest("*.lm_stack"))) { - if (!htmlTarget.className.includes("lm_close") && !htmlTarget.className.includes("lm_maximise")) { + const className = typeof htmlTarget.className === "string" ? htmlTarget.className : ""; + if (!className.includes("lm_close") && !className.includes("lm_maximise")) { this._flush = UndoManager.StartBatch("golden layout edit"); } } |
