Trigger ‘blur’ on select list editor instead of ‘focusut’ on its input

This commit is contained in:
Nathan Sobo 2014-10-16 20:04:47 -06:00
parent eb19989ecd
commit bda1429293

View File

@ -184,7 +184,7 @@ describe "SelectListView", ->
describe "when the mini editor loses focus", ->
it "triggers the cancelled hook and detaches the select list", ->
spyOn(selectList, 'detach')
filterEditorView.hiddenInput.trigger 'focusout'
filterEditorView.trigger 'blur'
expect(selectList.cancelled).toHaveBeenCalled()
expect(selectList.detach).toHaveBeenCalled()