Skip to content

Commit ca0df6b

Browse files
committed
Tooltip: Removed logic for handling tracking tooltips which gain focus while open (we no longer mix events). Fixes #8799 - Tooltip: tracking fails on nested elements.
1 parent 1b503a2 commit ca0df6b

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

ui/jquery.ui.tooltip.js

+2-14
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,8 @@ $.widget( "ui.tooltip", {
138138
// but always pointing at the same event target
139139
.closest( this.options.items );
140140

141-
// No element to show a tooltip for
142-
if ( !target.length ) {
143-
return;
144-
}
145-
146-
// If the tooltip is open and we're tracking then reposition the tooltip.
147-
// This makes sure that a tracking tooltip doesn't obscure a focused element
148-
// if the user was hovering when the element gained focused.
149-
if ( this.options.track && target.data( "ui-tooltip-id" ) ) {
150-
this._find( target ).position( $.extend({
151-
of: target
152-
}, this.options.position ) );
153-
// Stop tracking (#8622)
154-
this._off( this.document, "mousemove" );
141+
// No element to show a tooltip for or the tooltip is already open
142+
if ( !target.length || target.data( "ui-tooltip-id" ) ) {
155143
return;
156144
}
157145

0 commit comments

Comments
 (0)