mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Listen for ‘blur’ on mini editor of select list rather than ‘focusout’
The focusout handler on the mini editor’s hidden input wasn’t being triggered, but we can listen for blur directly on the editor now that the shadow DOM abstracts the focus.
This commit is contained in:
@@ -57,7 +57,7 @@ class SelectListView extends View
|
||||
initialize: ->
|
||||
@filterEditorView.getEditor().getBuffer().onDidChange =>
|
||||
@schedulePopulateList()
|
||||
@filterEditorView.hiddenInput.on 'focusout', =>
|
||||
@filterEditorView.on 'blur', =>
|
||||
@cancel() unless @cancelling
|
||||
|
||||
# This prevents the focusout event from firing on the filter editor view
|
||||
|
||||
Reference in New Issue
Block a user