diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-04-13 18:01:05 +0100 |
---|---|---|
committer | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-04-13 18:01:05 +0100 |
commit | 8d43fe4efe81ec5d657fb3d35802b9f9c5859301 (patch) | |
tree | 52549b860f0c674aeb92e2e8dfb8a7e82adad811 /app/assets/javascripts/milestone.js | |
parent | 98da0a8bb79d6e7a9c0473083aad1af12f850542 (diff) | |
download | gitlab-ce-8d43fe4efe81ec5d657fb3d35802b9f9c5859301.tar.gz |
Fix other listeners
Diffstat (limited to 'app/assets/javascripts/milestone.js')
-rw-r--r-- | app/assets/javascripts/milestone.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/milestone.js b/app/assets/javascripts/milestone.js index d3697eb0999..325fa570f37 100644 --- a/app/assets/javascripts/milestone.js +++ b/app/assets/javascripts/milestone.js @@ -61,8 +61,8 @@ export default class Milestone { }) .on('mouseenter', mouseenter) .on('mouseleave', debouncedMouseleave()) - .one('show.bs.popover', () => { - window.addEventListener('scroll', hideOnScroll); + .on('show.bs.popover', () => { + window.addEventListener('scroll', hideOnScroll, { once: true }); }); } } |