summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/milestone.js
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-04-13 18:01:05 +0100
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-04-13 18:01:05 +0100
commit8d43fe4efe81ec5d657fb3d35802b9f9c5859301 (patch)
tree52549b860f0c674aeb92e2e8dfb8a7e82adad811 /app/assets/javascripts/milestone.js
parent98da0a8bb79d6e7a9c0473083aad1af12f850542 (diff)
downloadgitlab-ce-8d43fe4efe81ec5d657fb3d35802b9f9c5859301.tar.gz
Fix other listeners
Diffstat (limited to 'app/assets/javascripts/milestone.js')
-rw-r--r--app/assets/javascripts/milestone.js4
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 });
});
}
}