mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Check dock focus using the DOM, not the active pane container state
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user