Added functionality to trigger 'enter' event for searchable select input fields.

This commit is contained in:
Thorsten Eckel 2017-09-13 12:37:11 +02:00
parent b981d0fccd
commit bfc73568c9

View file

@ -322,6 +322,9 @@ class App.SearchableSelect extends Spine.Controller
if @shadowInput.val() is ''
event.preventDefault()
@toggle()
else
@trigger 'enter'
@el.trigger 'enter'
return
event.preventDefault()