diff options
author | Arinde Eniola <eniolaarinde1@gmail.com> | 2016-04-27 16:55:02 +0300 |
---|---|---|
committer | Arinde Eniola <eniolaarinde1@gmail.com> | 2016-04-27 17:52:55 +0300 |
commit | cbeddc632ef6759a28ff778d117f32c77b406c6f (patch) | |
tree | fe6ff7d13367eb02daf3c3f121644a402a048e88 /app/assets | |
parent | 6c0ed6399054db00d8abcc33ad2aa7df59de52bf (diff) |
fix arrrow keys not working at top right search field
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/gl_dropdown.js.coffee | 2 | ||||
-rw-r--r-- | app/assets/javascripts/search_autocomplete.js.coffee | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js.coffee b/app/assets/javascripts/gl_dropdown.js.coffee index 29466e9f2ed..c721cbf4ae9 100644 --- a/app/assets/javascripts/gl_dropdown.js.coffee +++ b/app/assets/javascripts/gl_dropdown.js.coffee @@ -440,7 +440,7 @@ class GitLabDropdown e.stopImmediatePropagation() PREV_INDEX = currentIndex - $listItems = $(selector, @dropdown) + $listItems = $(selector, @dropdown).has('a') # if @options.filterable # $input.blur() diff --git a/app/assets/javascripts/search_autocomplete.js.coffee b/app/assets/javascripts/search_autocomplete.js.coffee index 6a7b4ad1db7..8eba61062b3 100644 --- a/app/assets/javascripts/search_autocomplete.js.coffee +++ b/app/assets/javascripts/search_autocomplete.js.coffee @@ -159,6 +159,7 @@ class @SearchAutocomplete @loadingSuggestions = false @dropdown.addClass('open') + @dropdown.trigger 'shown.bs.dropdown' @searchInput.removeClass('disabled') onSearchInputKeyDown: => @@ -267,6 +268,7 @@ class @SearchAutocomplete disableAutocomplete: -> @searchInput.addClass('disabled') @dropdown.removeClass('open') + @dropdown.trigger 'hidden.bs.dropdown' @restoreMenu() restoreMenu: -> |