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:
Nathan Sobo
2014-01-09 16:08:52 -07:00
parent 5ca7ad3bce
commit 964abd3141

View File

@@ -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])