diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-04-13 17:29:39 +0100 |
---|---|---|
committer | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-04-13 17:29:39 +0100 |
commit | 98da0a8bb79d6e7a9c0473083aad1af12f850542 (patch) | |
tree | f22ecdb6b2e3e6152879acfcfeabeee1be284772 /app | |
parent | 19f14cfe8210239800a1027569715f4f8d6699be (diff) | |
download | gitlab-ce-98da0a8bb79d6e7a9c0473083aad1af12f850542.tar.gz |
Fix feature_highlight listener
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/feature_highlight/feature_highlight.js | 5 |
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'); } |