mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Fixed the regression introduced in r2861
This commit is contained in:
parent
226ff67a00
commit
dcdccf0789
@ -278,7 +278,6 @@ $.widget("ui.accordion", {
|
||||
// switch classes
|
||||
this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all")
|
||||
.find(".ui-icon").removeClass(o.icons.headerSelected).addClass(o.icons.header);
|
||||
this.active.next().removeClass('ui-accordion-content-active');
|
||||
if (!clickedIsActive) {
|
||||
clicked.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top")
|
||||
.find(".ui-icon").removeClass(o.icons.header).addClass(o.icons.headerSelected);
|
||||
@ -405,6 +404,9 @@ $.widget("ui.accordion", {
|
||||
overflow: ""
|
||||
});
|
||||
}
|
||||
|
||||
// other classes are removed before the animation; this one needs to stay until completed
|
||||
this.toHide.removeClass("ui-accordion-content-active");
|
||||
|
||||
this._trigger('change', null, this.data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user