summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-11-14 14:42:36 -0500
committerScott González <scott.gonzalez@gmail.com>2012-11-14 14:42:53 -0500
commit0be0c2603c8289027ce93a1daa38c8599c639b54 (patch)
tree0bef58854ae07c60620bf62f6b423a2590a99b9c
parentf4ce4d309c6384ccda68065bbbee5a4404385503 (diff)
downloadjquery-ui-0be0c2603c8289027ce93a1daa38c8599c639b54.tar.gz
jquery-ui-0be0c2603c8289027ce93a1daa38c8599c639b54.zip
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.
(cherry picked from commit ca0df6b9007a13dabdf7e78acb3d30bdb0928a97)
-rw-r--r--ui/jquery.ui.tooltip.js16
1 files changed, 2 insertions, 14 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js
index 608501104..629dc0806 100644
--- a/ui/jquery.ui.tooltip.js
+++ b/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;
}