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
if $el.length and currentIndex > -1
e.preventDefault()
e.stopImmediatePropagation()
$el.first().trigger('click')
$el.first().get(0).click?()
if $el.first().get(0).click?
$el.first().get(0).click()
else
$el.first().trigger('click')
addArrowKeyEvent: ->
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