summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/feature_highlight/feature_highlight.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/feature_highlight/feature_highlight.js')
-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');