summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-04-13 17:29:39 +0100
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-04-13 17:29:39 +0100
commit98da0a8bb79d6e7a9c0473083aad1af12f850542 (patch)
treef22ecdb6b2e3e6152879acfcfeabeee1be284772 /app
parent19f14cfe8210239800a1027569715f4f8d6699be (diff)
downloadgitlab-ce-98da0a8bb79d6e7a9c0473083aad1af12f850542.tar.gz
Fix feature_highlight listener
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/feature_highlight/feature_highlight.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/assets/javascripts/feature_highlight/feature_highlight.js b/app/assets/javascripts/feature_highlight/feature_highlight.js
index 0d385ab0aac..139d7826118 100644
--- a/app/assets/javascripts/feature_highlight/feature_highlight.js
+++ b/app/assets/javascripts/feature_highlight/feature_highlight.js
@@ -31,12 +31,9 @@ export function setupFeatureHighlightPopover(id, debounceTimeout = 300) {
.on('mouseenter', mouseenter)
.on('mouseleave', debouncedMouseleave(debounceTimeout))
.on('inserted.bs.popover', inserted)
- .on('show.bs.popover', () => {
+ .one('show.bs.popover', () => {
window.addEventListener('scroll', hideOnScroll);
})
- .on('hide.bs.popover', () => {
- window.removeEventListener('scroll', hideOnScroll);
- })
// Display feature highlight
.removeAttr('disabled');
}