Skip to content

Commit 11ebb69

Browse files
mani-mishrascottgonzalez
authored andcommitted
Tooltip: Use show.delay update only when track option is active
Fixes #14682 Closes jquerygh-1613 (cherry picked from commit d573232)
1 parent b32bc7a commit 11ebb69

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/tooltip.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,9 @@ return $.widget( "ui.tooltip", {
308308
// Handle tracking tooltips that are shown with a delay (#8644). As soon
309309
// as the tooltip is visible, position the tooltip using the most recent
310310
// event.
311-
if ( this.options.show && this.options.show.delay ) {
312-
delayedShow = this.delayedShow = setInterval(function() {
311+
// Adds the check to add the timers only when both delay and track options are set (#14682)
312+
if ( this.options.track && this.options.show && this.options.show.delay ) {
313+
delayedShow = this.delayedShow = setInterval( function() {
313314
if ( tooltip.is( ":visible" ) ) {
314315
position( positionOption.of );
315316
clearInterval( delayedShow );

0 commit comments

Comments
 (0)