Skip to content
Snippets Groups Projects
Unverified Commit 3130572f authored by Paul Slaughter's avatar Paul Slaughter
Browse files

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.
parent c3e825e0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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;
}
}
Loading
Loading
---
title: Fix scrolling to top on assignee change
merge_request: 29500
author:
type: fixed
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment