Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-04-13 20:01:05 +0300
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-04-13 20:01:05 +0300
commit8d43fe4efe81ec5d657fb3d35802b9f9c5859301 (patch)
tree52549b860f0c674aeb92e2e8dfb8a7e82adad811 /app/assets/javascripts/feature_highlight
parent98da0a8bb79d6e7a9c0473083aad1af12f850542 (diff)
Fix other listeners
Diffstat (limited to 'app/assets/javascripts/feature_highlight')
-rw-r--r--app/assets/javascripts/feature_highlight/feature_highlight.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/feature_highlight/feature_highlight.js b/app/assets/javascripts/feature_highlight/feature_highlight.js
index 139d7826118..2d5bae9a9c4 100644
--- a/app/assets/javascripts/feature_highlight/feature_highlight.js
+++ b/app/assets/javascripts/feature_highlight/feature_highlight.js
@@ -31,8 +31,8 @@ export function setupFeatureHighlightPopover(id, debounceTimeout = 300) {
.on('mouseenter', mouseenter)
.on('mouseleave', debouncedMouseleave(debounceTimeout))
.on('inserted.bs.popover', inserted)
- .one('show.bs.popover', () => {
- window.addEventListener('scroll', hideOnScroll);
+ .on('show.bs.popover', () => {
+ window.addEventListener('scroll', hideOnScroll, { once: true });
})
// Display feature highlight
.removeAttr('disabled');