Commit 85cd73c7 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett Committed by Luke Bennett

improved turbolinks.visit conditional

parent b4398de5
......@@ -566,7 +566,7 @@ class GitLabDropdown
e.stopImmediatePropagation()
$el.first().trigger 'click'
href = $el.attr 'href'
Turbolinks.visit(href) if href
Turbolinks.visit(href) if href and href isnt '#'
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