Skip to content

Commit d573232

Browse files
mani-mishrajzaefferer
authored andcommitted
Tooltip: Use show.delay update only when track option is active
Fixes #14682 Closes jquerygh-1613
1 parent 4c5cd20 commit d573232

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/widgets/tooltip.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ $.widget( "ui.tooltip", {
318318
// Handle tracking tooltips that are shown with a delay (#8644). As soon
319319
// as the tooltip is visible, position the tooltip using the most recent
320320
// event.
321-
if ( this.options.show && this.options.show.delay ) {
321+
// Adds the check to add the timers only when both delay and track options are set (#14682)
322+
if ( this.options.track && this.options.show && this.options.show.delay ) {
322323
delayedShow = this.delayedShow = setInterval( function() {
323324
if ( tooltip.is( ":visible" ) ) {
324325
position( positionOption.of );

0 commit comments

Comments
 (0)