mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Suppress blur when replacing a pane axis with its last child
If the pane axis contains a child pane, its temporary removal from the DOM causes a blur event that we don't want to screw up our focused state.
This commit is contained in:
@@ -70,4 +70,5 @@ class PaneAxisModel extends Model
|
||||
@children.splice(index + 1, 0, newChild)
|
||||
|
||||
reparentLastChild: ->
|
||||
@parent.replaceChild(this, @children[0])
|
||||
@focusContext.suppressBlur =>
|
||||
@parent.replaceChild(this, @children[0])
|
||||
|
||||
Reference in New Issue
Block a user