diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-07-19 02:03:16 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-07-19 02:03:16 +0300 |
commit | a046a568ea913e446fe47c57e36b729b073564ad (patch) | |
tree | a724101c61647c3d902669fc3eb7d4bcdbe45762 /app/assets/javascripts | |
parent | 777a080892f710915c8f4d62864813ef388a1873 (diff) | |
parent | 7a4d728581e1afb0401f15bca2d3dec0016030e1 (diff) |
Merge branch 'sidebar-dropdowns-blur-link' into 'master'
Blurs the clicked link in dropdown menus
## What does this MR do?
This fixes an issue where the dropdown menu would stay visible even when clicked out of it
See merge request !5322
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/gl_dropdown.js.coffee | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js.coffee b/app/assets/javascripts/gl_dropdown.js.coffee index 1b0d0db8954..951530e03a5 100644 --- a/app/assets/javascripts/gl_dropdown.js.coffee +++ b/app/assets/javascripts/gl_dropdown.js.coffee @@ -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 |