Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tooltip: Improve fadeout animation to handle case where tooltip overl…

…ays the element, causing it to hide instantly and never appearing again
  • Loading branch information...
commit 99900d57cec7a2b3b4b09397b101bb8d7a7d449c 1 parent 8cba84c
@jzaefferer jzaefferer authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 ui/jquery.ui.tooltip.js
View
4 ui/jquery.ui.tooltip.js
@@ -133,7 +133,9 @@ $.widget("ui.tooltip", {
this.tooltip.attr("aria-hidden", "true");
if (this.tooltip.is(':animated'))
- this.tooltip.stop().fadeTo("normal", 0);
+ this.tooltip.stop().fadeTo("normal", 0, function() {
+ $(this).hide().css("opacity", "");
+ });
else
this.tooltip.stop().fadeOut();
Please sign in to comment.
Something went wrong with that request. Please try again.