Skip to content

Commit 497ec85

Browse files
committed
Accordion: Fixed weird behavior on accordion animations in IE. Fixed #5421 - Accordion header margins disappear in IE 8
1 parent c1cc00f commit 497ec85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/jquery.ui.accordion.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,8 @@ $.widget( "ui.accordion", {
495495

496496
// other classes are removed before the animation; this one needs to stay until completed
497497
this.toHide.removeClass( "ui-accordion-content-active" );
498+
// Work around for rendering bug in IE (#5421)
499+
this.toHide.parent()[0].className = this.toHide.parent()[0].className;
498500

499501
this._trigger( "change", null, this.data );
500502
}

0 commit comments

Comments
 (0)