Fix gl_dropdown scrolling to top on assignee click

**How?**
It looks like when assignees are clicked, the child of the `<a>`.
We fix our propogation check by looking at `.closest` which traverses
through the element itself and parent.
This commit is contained in:
Paul Slaughter 2019-06-11 10:51:57 -05:00
parent c3e825e01e
commit 3130572f92
No known key found for this signature in database
GPG key ID: DF5690803C68282A
2 changed files with 6 additions and 1 deletions

View file

@ -567,7 +567,7 @@ GitLabDropdown = (function() {
e.stopPropagation();
// This prevents automatic scrolling to the top
if ($target.is('a')) {
if ($target.closest('a').length) {
return false;
}
}

View file

@ -0,0 +1,5 @@
---
title: Fix scrolling to top on assignee change
merge_request: 29500
author:
type: fixed