Skip to content
Snippets Groups Projects
Commit 0ff30468 authored by Alfredo Sumaran's avatar Alfredo Sumaran Committed by DJ Mountney
Browse files

Merge branch '29414-fix-link-toggler-diff-changed-files' into 'master'

Fix "N changed files" link toggler jumping to top

Closes #29414

See merge request !10126
parent bdec5c5b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -24,7 +24,7 @@
$('body').on('click', '.js-toggle-button', function(e) {
toggleContainer($(this).closest('.js-toggle-container'));
 
const targetTag = e.target.tagName.toLowerCase();
const targetTag = e.currentTarget.tagName.toLowerCase();
if (targetTag === 'a' || targetTag === 'button') {
e.preventDefault();
}
Loading
Loading
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