@@ -117,7 +117,7 @@ $.widget( "ui.tooltip", {
117
117
target = $ ( event ? event . target : this . element )
118
118
. closest ( this . options . items ) ;
119
119
120
- // if aria-describedby exists, then the tooltip is already open
120
+ // if ui-tooltip-id exists, then the tooltip is already open
121
121
if ( ! target . length || target . data ( "ui-tooltip-id" ) ) {
122
122
return ;
123
123
}
@@ -152,7 +152,7 @@ $.widget( "ui.tooltip", {
152
152
// if we have a title, clear it to prevent the native tooltip
153
153
// we have to check first to avoid defining a title if none exists
154
154
// (we don't want to cause an element to start matching [title])
155
-
155
+ //
156
156
// We use removeAttr only for key events, to allow IE to export the correct
157
157
// accessible attributes. For mouse events, set to empty string to avoid
158
158
// native tooltip showing up (happens only when removing inside mouseover).
@@ -208,6 +208,7 @@ $.widget( "ui.tooltip", {
208
208
209
209
// don't close if the element has focus
210
210
// this prevents the tooltip from closing if you hover while focused
211
+ //
211
212
// we have to check the event type because tabbing out of the document
212
213
// may leave the element as the activeElement
213
214
if ( ! force && event && event . type !== "focusout" &&
0 commit comments