Fix label click scrolling to top

This commit is contained in:
Paul Slaughter 2019-06-05 06:04:33 -05:00
parent 202e525119
commit c9c7fa7bbb
No known key found for this signature in database
GPG Key ID: DF5690803C68282A
2 changed files with 10 additions and 0 deletions

View File

@ -565,6 +565,11 @@ GitLabDropdown = (function() {
!$target.data('isLink')
) {
e.stopPropagation();
// This prevents automatic scrolling to the top
if ($target.is('a')) {
return false;
}
}
return true;

View File

@ -0,0 +1,5 @@
---
title: Fix label click scrolling to top
merge_request: 29202
author:
type: fixed