From 8aeabe5fe5cae7c15fa1335bda1b2897c0e15695 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 16 Oct 2014 18:40:45 -0600 Subject: [PATCH] =?UTF-8?q?Listen=20for=20=E2=80=98blur=E2=80=99=20on=20mi?= =?UTF-8?q?ni=20editor=20of=20select=20list=20rather=20than=20=E2=80=98foc?= =?UTF-8?q?usout=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/select-list-view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/select-list-view.coffee b/src/select-list-view.coffee index 1fdc60e4a..ec56b88cf 100644 --- a/src/select-list-view.coffee +++ b/src/select-list-view.coffee @@ -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