Skip to content

Commit 99900d5

Browse files
committed
Tooltip: Improve fadeout animation to handle case where tooltip overlays the element, causing it to hide instantly and never appearing again
1 parent 8cba84c commit 99900d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/jquery.ui.tooltip.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ $.widget("ui.tooltip", {
133133
this.tooltip.attr("aria-hidden", "true");
134134

135135
if (this.tooltip.is(':animated'))
136-
this.tooltip.stop().fadeTo("normal", 0);
136+
this.tooltip.stop().fadeTo("normal", 0, function() {
137+
$(this).hide().css("opacity", "");
138+
});
137139
else
138140
this.tooltip.stop().fadeOut();
139141

0 commit comments

Comments
 (0)