Merge pull request #26558 from woocommerce/fix/26555

Fix tooltip flashing
This commit is contained in:
Claudio Sanches 2020-07-01 12:47:14 -03:00 committed by GitHub
commit d74b73f014
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 6 deletions

View File

@ -123,7 +123,8 @@ jQuery( function ( $ ) {
'attribute': 'data-tip',
'fadeIn': 50,
'fadeOut': 50,
'delay': 200
'delay': 200,
'keepAlive': true
});
},

View File

@ -9,7 +9,8 @@ jQuery( function ( $ ) {
'attribute': 'data-tip',
'fadeIn': 50,
'fadeOut': 50,
'delay': 200
'delay': 200,
'keepAlive': true
});
}

View File

@ -188,7 +188,8 @@
'attribute': 'data-tip',
'fadeIn': 50,
'fadeOut': 50,
'delay': 200
'delay': 200,
'keepAlive': true
} );
$( '.column-wc_actions .wc-action-button' ).tipTip( {
@ -203,7 +204,8 @@
'attribute': 'data-tip',
'fadeIn': 50,
'fadeOut': 50,
'delay': 200
'delay': 200,
'keepAlive': true
} ).css( 'cursor', 'help' );
});
});

View File

@ -66,7 +66,7 @@
org_elem.hover(function(){
active_tiptip();
}, function(){
if(!opts.keepAlive){
if(!opts.keepAlive || !tiptip_holder.is(':hover')){
deactive_tiptip();
}
});