Commit d312f684 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch 'projects-dropdown-perf' into 'master'

Fixed performance of projects dropdown

Closes #41939

See merge request gitlab-org/gitlab-ce!16425
parents 140935fb bb2095ab
...@@ -19,11 +19,8 @@ document.addEventListener('DOMContentLoaded', () => { ...@@ -19,11 +19,8 @@ document.addEventListener('DOMContentLoaded', () => {
return; return;
} }
$(navEl).on('show.bs.dropdown', (e) => { $(navEl).on('shown.bs.dropdown', () => {
const dropdownEl = $(e.currentTarget).find('.projects-dropdown-menu'); eventHub.$emit('dropdownOpen');
dropdownEl.one('transitionend', () => {
eventHub.$emit('dropdownOpen');
});
}); });
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment