Commit 3130572f authored by Paul Slaughter's avatar Paul Slaughter

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
...@@ -567,7 +567,7 @@ GitLabDropdown = (function() { ...@@ -567,7 +567,7 @@ GitLabDropdown = (function() {
e.stopPropagation(); e.stopPropagation();
// This prevents automatic scrolling to the top // This prevents automatic scrolling to the top
if ($target.is('a')) { if ($target.closest('a').length) {
return false; return false;
} }
} }
......
---
title: Fix scrolling to top on assignee change
merge_request: 29500
author:
type: fixed
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