aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-08-08 11:21:46 -0400
committerbob <bcz@cs.brown.edu>2019-08-08 11:21:46 -0400
commit3110d85b7e1efab006a13824792b031f63dba8c8 (patch)
tree7afddc6804174a4b661e6801ecee0ef2981d352f
parent44a0bc3546eca5fa18f3599448ebcebf709e3f90 (diff)
fixed unhighlighting tabs
-rw-r--r--package.json4
-rw-r--r--src/client/views/collections/CollectionDockingView.tsx1
2 files changed, 3 insertions, 2 deletions
diff --git a/package.json b/package.json
index 0ff9306b3..5d09c91c7 100644
--- a/package.json
+++ b/package.json
@@ -117,8 +117,8 @@
"bluebird": "^3.5.3",
"body-parser": "^1.18.3",
"bootstrap": "^4.3.1",
- "child_process": "^1.0.2",
"canvas": "^2.5.0",
+ "child_process": "^1.0.2",
"class-transformer": "^0.2.0",
"connect-flash": "^0.1.1",
"connect-mongo": "^2.0.3",
@@ -160,7 +160,7 @@
"nodemailer": "^5.1.1",
"nodemon": "^1.18.10",
"normalize.css": "^8.0.1",
- "npm": "^6.9.0",
+ "npm": "^6.10.3",
"p-limit": "^2.2.0",
"passport": "^0.4.0",
"passport-local": "^1.0.0",
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx
index feca66bc3..77b698a07 100644
--- a/src/client/views/collections/CollectionDockingView.tsx
+++ b/src/client/views/collections/CollectionDockingView.tsx
@@ -548,6 +548,7 @@ export class DockedFrameRenderer extends React.Component<DockedFrameProps> {
private onActiveContentItemChanged() {
if (this.props.glContainer.tab) {
this._isActive = this.props.glContainer.tab.isActive;
+ !this._isActive && this._document && Doc.UnBrushDoc(this._document); // bcz: bad -- trying to simulate a pointer leave event when a new tab is opened up on top of an existing one.
}
}