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
This commit is contained in:
commit
011664fdd1
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
||||||
$('body').on('click', '.js-toggle-button', function(e) {
|
$('body').on('click', '.js-toggle-button', function(e) {
|
||||||
toggleContainer($(this).closest('.js-toggle-container'));
|
toggleContainer($(this).closest('.js-toggle-container'));
|
||||||
|
|
||||||
const targetTag = e.target.tagName.toLowerCase();
|
const targetTag = e.currentTarget.tagName.toLowerCase();
|
||||||
if (targetTag === 'a' || targetTag === 'button') {
|
if (targetTag === 'a' || targetTag === 'button') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue