Skip to content
Snippets Groups Projects
Commit 5d7b2bd4 authored by Phil Hughes's avatar Phil Hughes
Browse files

Prevent default on link click in ref switcher

parent 1dc706db
Branches
Tags
1 merge request!5111Fixed enter submitting form in dropdown
Pipeline #
Loading
Loading
@@ -86,7 +86,8 @@ class @Project
$el.attr('data-ref')
toggleLabel: (obj, $el) ->
$el.text().trim()
clicked: (e) ->
clicked: (selected, $el, e) ->
e.preventDefault()
if $('input[name="ref"]').length
$form = $dropdown.closest('form')
action = $form.attr('action')
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment