diff options
author | Mani Mishra <manimishra902@gmail.com> | 2015-10-07 10:42:10 +0530 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2015-10-17 16:14:41 -0400 |
commit | d5732327078709c3680385c79a2106f263009f84 (patch) | |
tree | 8d999332a05f28209f8bae150220316a2d72cdde | |
parent | 4c5cd2018d88392871cfc93d3fb6f71a0bc510ff (diff) | |
download | jquery-ui-d5732327078709c3680385c79a2106f263009f84.tar.gz jquery-ui-d5732327078709c3680385c79a2106f263009f84.zip |
Tooltip: Use show.delay update only when track option is active
Fixes #14682
Closes gh-1613
-rw-r--r-- | ui/widgets/tooltip.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/widgets/tooltip.js b/ui/widgets/tooltip.js index daf783a98..1bff57c8f 100644 --- a/ui/widgets/tooltip.js +++ b/ui/widgets/tooltip.js @@ -318,7 +318,8 @@ $.widget( "ui.tooltip", { // Handle tracking tooltips that are shown with a delay (#8644). As soon // as the tooltip is visible, position the tooltip using the most recent // event. - if ( this.options.show && this.options.show.delay ) { + // Adds the check to add the timers only when both delay and track options are set (#14682) + if ( this.options.track && this.options.show && this.options.show.delay ) { delayedShow = this.delayedShow = setInterval( function() { if ( tooltip.is( ":visible" ) ) { position( positionOption.of ); |