提交 011664fd 编写于 作者: A Alfredo Sumaran

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
......@@ -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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册