Hides the tooltip on scroll
This is especially obvious on mobile. The tooltip opens on tap but there is no way to hide it, so this hides the tooltip after scrolling.
This commit is contained in:
parent
bb062ebdb6
commit
0385b161de
2 changed files with 8 additions and 0 deletions
|
@ -236,6 +236,10 @@ require('es6-promise').polyfill();
|
|||
var bootstrapBreakpoint = bp.getBreakpointSize();
|
||||
var fitSidebarForSize;
|
||||
|
||||
$(document).on('scroll', function() {
|
||||
$('.has-tooltip').tooltip('hide');
|
||||
});
|
||||
|
||||
// Set the default path for all cookies to GitLab's root directory
|
||||
Cookies.defaults.path = gon.relative_url_root || '/';
|
||||
|
||||
|
|
4
changelogs/unreleased/tooltip-hide-on-scroll.yml
Normal file
4
changelogs/unreleased/tooltip-hide-on-scroll.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Fixed tooltip remaining after scrolling the page
|
||||
merge_request:
|
||||
author:
|
Loading…
Reference in a new issue