Check dock focus using the DOM, not the active pane container state

This commit is contained in:
Max Brunsfeld
2017-05-02 13:30:36 -07:00
parent a61accf175
commit 2f336a64d3

View File

@@ -471,7 +471,9 @@ module.exports = class Workspace extends Model {
}
didHideDock (dock) {
if (dock === this.activePaneContainer) {
const {activeElement} = document
const dockElement = dock.getElement()
if (dockElement === activeElement || dockElement.contains(activeElement)) {
this.getCenter().activate()
}
}