diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-03-23 06:00:25 +0300 |
---|---|---|
committer | DJ Mountney <david@twkie.net> | 2017-03-28 00:38:55 +0300 |
commit | 0ff304683ef3ae8ceec6d7fc087669a34618bfb0 (patch) | |
tree | 096daf0ce1d69e3d43f905777db42c4230b7eef6 /app | |
parent | bdec5c5ba9cecc28f739c6c74cb0f304863a2f2e (diff) |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/behaviors/toggler_behavior.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/behaviors/toggler_behavior.js b/app/assets/javascripts/behaviors/toggler_behavior.js index 92f3bb3ff52..86927314dd4 100644 --- a/app/assets/javascripts/behaviors/toggler_behavior.js +++ b/app/assets/javascripts/behaviors/toggler_behavior.js @@ -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(); } |