From bfc73568c957330b3d950226c4aacd7a40a01828 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Wed, 13 Sep 2017 12:37:11 +0200 Subject: [PATCH] Added functionality to trigger 'enter' event for searchable select input fields. --- .../javascripts/app/lib/app_post/searchable_select.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/app/lib/app_post/searchable_select.coffee b/app/assets/javascripts/app/lib/app_post/searchable_select.coffee index 7420a0832..810928954 100644 --- a/app/assets/javascripts/app/lib/app_post/searchable_select.coffee +++ b/app/assets/javascripts/app/lib/app_post/searchable_select.coffee @@ -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()