EditorView refuses to give up focus when appending SelectListView to EditorView


#1

When appending a SelectListView to an EditorView, the EditorView will not give up focus, even if ::storeFocusedElement and ::focusFilterEditor are called on the SelectListView. The result of this is that hitting the up and down arrows and the enter key do to affect the SelectListView, they only affect the ‘EditorView’ underneath.

However, if the SelectListView is appended to the WorkspaceView everything works as intended.

  // Doesn't work correctly
  attach: ->
    @storeFocusedElement()
    @editorView.append(this)
    @focusFilterEditor()

  // Does work correctly
  attach: ->
    @storeFocusedElement()
    atom.workspaceView.append(this)
    @focusFilterEditor()

I’m seeing this behavior in 0.64.0. Maybe there’s a workaround until this is fixed? Maybe I’m missing something and this isn’t a bug?