Skip to content
Snippets Groups Projects
Unverified Commit 98da0a8b authored by Luke Bennett's avatar Luke Bennett
Browse files

Fix feature_highlight listener

parent 19f14cfe
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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');
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment