mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Tooltip: Improve fadeout animation to handle case where tooltip overlays the element, causing it to hide instantly and never appearing again
This commit is contained in:
parent
8cba84c246
commit
99900d57ce
4
ui/jquery.ui.tooltip.js
vendored
4
ui/jquery.ui.tooltip.js
vendored
@ -133,7 +133,9 @@ $.widget("ui.tooltip", {
|
|||||||
this.tooltip.attr("aria-hidden", "true");
|
this.tooltip.attr("aria-hidden", "true");
|
||||||
|
|
||||||
if (this.tooltip.is(':animated'))
|
if (this.tooltip.is(':animated'))
|
||||||
this.tooltip.stop().fadeTo("normal", 0);
|
this.tooltip.stop().fadeTo("normal", 0, function() {
|
||||||
|
$(this).hide().css("opacity", "");
|
||||||
|
});
|
||||||
else
|
else
|
||||||
this.tooltip.stop().fadeOut();
|
this.tooltip.stop().fadeOut();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user