Skip to content
Permalink
Browse files

Tooltip: Removed logic for handling tracking tooltips which gain focu…

…s while open (we no longer mix events). Fixes #8799 - Tooltip: tracking fails on nested elements.
  • Loading branch information...
scottgonzalez committed Nov 14, 2012
1 parent 1b503a2 commit ca0df6b9007a13dabdf7e78acb3d30bdb0928a97
Showing with 2 additions and 14 deletions.
  1. +2 −14 ui/jquery.ui.tooltip.js
@@ -138,20 +138,8 @@ $.widget( "ui.tooltip", {
// but always pointing at the same event target
.closest( this.options.items );

// No element to show a tooltip for
if ( !target.length ) {
return;
}

// If the tooltip is open and we're tracking then reposition the tooltip.
// This makes sure that a tracking tooltip doesn't obscure a focused element
// if the user was hovering when the element gained focused.
if ( this.options.track && target.data( "ui-tooltip-id" ) ) {
this._find( target ).position( $.extend({
of: target
}, this.options.position ) );
// Stop tracking (#8622)
this._off( this.document, "mousemove" );
// No element to show a tooltip for or the tooltip is already open
if ( !target.length || target.data( "ui-tooltip-id" ) ) {
return;
}

0 comments on commit ca0df6b

Please sign in to comment.
You can’t perform that action at this time.