mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 23:45:12 -05:00
Make sure that animated show resets the display correctly. Fixes #5130.
This commit is contained in:
@@ -359,7 +359,9 @@ jQuery.fx.prototype = {
|
||||
this.elem.style.overflow = this.options.overflow;
|
||||
|
||||
// Reset the display
|
||||
this.elem.style.display = this.options.display;
|
||||
var old = jQuery.data(this.elem, "olddisplay");
|
||||
this.elem.style.display = old ? old : this.options.display;
|
||||
|
||||
if ( jQuery.css(this.elem, "display") == "none" ) {
|
||||
this.elem.style.display = "block";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user