mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Tooltip: Use show.delay update only when track option is active
Fixes #14682 Closes gh-1613
This commit is contained in:
parent
4c5cd2018d
commit
d573232707
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user