Skip to content

Commit 31a181a

Browse files
committed
Tooltip: Make sure we have a target before trying to open the tooltip.
1 parent b4d75c1 commit 31a181a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/jquery.ui.tooltip.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ $.widget("ui.tooltip", {
6868

6969
open: function(event) {
7070
var target = $(event && event.target || this.element).closest(this.options.items);
71+
if ( !target.length ) {
72+
return;
73+
}
7174
// already visible? possible when both focus and mouseover events occur
7275
if (this.current && this.current[0] == target[0])
7376
return;

0 commit comments

Comments
 (0)