aboutsummaryrefslogtreecommitdiff
path: root/src/client/goldenLayout.js
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-06-08 12:44:36 -0400
committerbobzel <zzzman@gmail.com>2022-06-08 12:44:36 -0400
commit5157f0c500b01a635c373cc661a2588ef7506d79 (patch)
treeb148024f3b0639e28988046dd92aeed0ea7e4b66 /src/client/goldenLayout.js
parent7ab50d37d38a91d564cf3150be35a68d11bdcffe (diff)
added context menu back to tab's via the doc icon. made docicon draggable and clickable. removed collectiondockingviewmenu.
Diffstat (limited to 'src/client/goldenLayout.js')
-rw-r--r--src/client/goldenLayout.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/goldenLayout.js b/src/client/goldenLayout.js
index 4735f216f..012ee163c 100644
--- a/src/client/goldenLayout.js
+++ b/src/client/goldenLayout.js
@@ -458,8 +458,9 @@
if (this._bDragging === true) {
this._bDragging = false;
this.emit('dragStop', oEvent, this._nOriginalX + this._nX);
- } else if (oEvent.target) { // make title receive pointer events to allow setting insertion position or selecting texst range
- if (oEvent.target.className.includes("lm_title_wrap")) {
+ } else { // make title receive pointer events to allow setting insertion position or selecting texst range
+ const classname = typeof oEvent.target?.className === "string" ? oEvent.target.className : "";
+ if (classname.includes("lm_title_wrap")) {
oEvent.target.children[0].style.pointerEvents = "all";
oEvent.target.children[0].focus();
}