mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tooltip: Make sure we have a target before trying to open the tooltip.
This commit is contained in:
parent
b4d75c1083
commit
31a181abfc
3
ui/jquery.ui.tooltip.js
vendored
3
ui/jquery.ui.tooltip.js
vendored
@ -68,6 +68,9 @@ $.widget("ui.tooltip", {
|
||||
|
||||
open: function(event) {
|
||||
var target = $(event && event.target || this.element).closest(this.options.items);
|
||||
if ( !target.length ) {
|
||||
return;
|
||||
}
|
||||
// already visible? possible when both focus and mouseover events occur
|
||||
if (this.current && this.current[0] == target[0])
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user