Commit cfac448b authored by Fatih Acet's avatar Fatih Acet Committed by GitLab Release Tools Bot

Merge branch '61246-fix-label-click-scroll-to-top' into 'master'

Fix label click scrolling to top

Closes #61246

See merge request gitlab-org/gitlab-ce!29202

(cherry picked from commit 92b06c13)

c9c7fa7b Fix label click scrolling to top
parent f8c95386
...@@ -561,6 +561,11 @@ GitLabDropdown = (function() { ...@@ -561,6 +561,11 @@ GitLabDropdown = (function() {
!$target.data('isLink') !$target.data('isLink')
) { ) {
e.stopPropagation(); e.stopPropagation();
// This prevents automatic scrolling to the top
if ($target.is('a')) {
return false;
}
} }
return true; return true;
......
---
title: Fix label click scrolling to top
merge_request: 29202
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