Commit 5e52e1a2 authored by Phil Hughes's avatar Phil Hughes

Fixes issue with dropdowns enter key not working correctly

parent 950ac084
...@@ -565,8 +565,11 @@ class GitLabDropdown ...@@ -565,8 +565,11 @@ class GitLabDropdown
if $el.length and currentIndex > -1 if $el.length and currentIndex > -1
e.preventDefault() e.preventDefault()
e.stopImmediatePropagation() e.stopImmediatePropagation()
if $el.first().get(0).click?
$el.first().get(0).click()
else
$el.first().trigger('click') $el.first().trigger('click')
$el.first().get(0).click?()
addArrowKeyEvent: -> addArrowKeyEvent: ->
ARROW_KEY_CODES = [38, 40] ARROW_KEY_CODES = [38, 40]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment