Blurs the clicked link in dropdown menus

This fixes an issue where the dropdown menu would stay visible even when clicked out of it
This commit is contained in:
Phil Hughes 2016-07-18 14:52:31 +01:00
parent 4e898b9b5e
commit 7a4d728581

View file

@ -250,6 +250,8 @@ class GitLabDropdown
if self.options.clicked
self.options.clicked(selected, $el, e)
$el.trigger('blur')
# Finds an element inside wrapper element
getElement: (selector) ->
@dropdown.find selector