Opened 8 years ago

Closed 8 years ago

#10954 closed bug (invalid)

tooltip appearing at [0,0] when the element disappears

Reported by: amik Owned by: amik
Priority: minor Milestone: none
Component: ui.tooltip Version: 1.11.2
Keywords: Cc:
Blocked by: Blocking:

Description

Sometimes with furious clicking elements with tooltips that appear on hover over master element, the element is not visible/is destroyed before the tooltip appears. Then, the tooltip appears on [0,0] and does not disappear any more. This check for visibility fixes this behavior.

The minimum working example that I was able to produce can be found here: http://jsfiddle.net/c72t9s8h/ tested in lastest Chrome - when you hover over the element, it starts rapidly blinking and the tooltip appears for a short time at [0px, 65px]. Normally (when removed the onmouseenter in the fiddle), the tooltip should appear at [50px, 115px].

I know that the jsfiddle is not very realistic case, but still it demonstrates a bug. The same bug appears on my site with very complex structure of elements with tooltips, which 1) I cannot publish 2) is too complicated to demonstrate a simple bug 3) occurs quite randomly.

Suggested simple solution can be found at https://github.com/jquery/jquery-ui/pull/1442 , which was closed as posting as a bug report was requested.

Change History (2)

comment:1 in reply to:  description Changed 8 years ago by Scott González

Owner: set to amik
Status: newpending

Replying to amik:

I know that the jsfiddle is not very realistic case, but still it demonstrates a bug.

A bug in code that would never exist doesn't matter.

The same bug appears on my site with very complex structure of elements with tooltips, which 1) I cannot publish 2) is too complicated to demonstrate a simple bug 3) occurs quite randomly.

Without a realistic reduced case, we will not change the code.

comment:2 Changed 8 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.