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:
parent
4e898b9b5e
commit
7a4d728581
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue