summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-01-12 14:42:12 +0000
committerFilipa Lacerda <filipa@gitlab.com>2018-01-12 14:42:12 +0000
commitd312f684b4df8901c5ea981f8e32b4612636cdfa (patch)
tree1c9f577ff938a9190c4710b54eeb83ceea5acafb /app
parent140935fbfd68bcf883d3f232e278b90896ee8d84 (diff)
parentbb2095ab0e9f23620368ba544de398d0e1313144 (diff)
downloadgitlab-ce-d312f684b4df8901c5ea981f8e32b4612636cdfa.tar.gz
Merge branch 'projects-dropdown-perf' into 'master'
Fixed performance of projects dropdown Closes #41939 See merge request gitlab-org/gitlab-ce!16425
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/projects_dropdown/index.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/assets/javascripts/projects_dropdown/index.js b/app/assets/javascripts/projects_dropdown/index.js
index 2660da3c558..e78ebce2923 100644
--- a/app/assets/javascripts/projects_dropdown/index.js
+++ b/app/assets/javascripts/projects_dropdown/index.js
@@ -19,11 +19,8 @@ document.addEventListener('DOMContentLoaded', () => {
return;
}
- $(navEl).on('show.bs.dropdown', (e) => {
- const dropdownEl = $(e.currentTarget).find('.projects-dropdown-menu');
- dropdownEl.one('transitionend', () => {
- eventHub.$emit('dropdownOpen');
- });
+ $(navEl).on('shown.bs.dropdown', () => {
+ eventHub.$emit('dropdownOpen');
});
// eslint-disable-next-line no-new