Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #7382
Closed
Open
Issue created Mar 25, 2013 by Administrator@rootContributor

Tooltip hides if user mouses in, out, in before delay.hide fires when delay.show is falsy.

Created by: jwadhams

I noticed a problem in ToolTip (and by extension, PopOver) when I customized delay.hide to be large and left delay.show alone.

If the user mouses into the target, then out (e.g., overshoots) then in again before delay.hide's setTimeout fires, the tooltip will get hidden while the mouse is still in the target.

Here's a jsfiddle showing the problem scenario: http://jsfiddle.net/jwadhams/dYQwq/3/

Once I found the fix, I also found a workaround. If delay.show is truthy (I used 1ms, which is not user-perceivable) the issue goes away: http://jsfiddle.net/jwadhams/dYQwq/4/

The fix is to always clearTimeout(this.timeout), even if delay.show is falsy. (Pull request follows).

Assignee
Assign to
Time tracking