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

Blurs the clicked link in dropdown menus

This fixes an issue where the dropdown menu would stay visible even when clicked out of it
parent 4e898b9b
No related branches found
No related tags found
No related merge requests found
Loading
@@ -250,6 +250,8 @@ class GitLabDropdown
Loading
@@ -250,6 +250,8 @@ class GitLabDropdown
if self.options.clicked if self.options.clicked
self.options.clicked(selected, $el, e) self.options.clicked(selected, $el, e)
   
$el.trigger('blur')
# Finds an element inside wrapper element # Finds an element inside wrapper element
getElement: (selector) -> getElement: (selector) ->
@dropdown.find selector @dropdown.find selector
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment