Skip to content

Commit fc52912

Browse files
committed
Accordion: When simulating events, make sure we use DOM elements, not jQuery objects.
1 parent 9a1d889 commit fc52912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.accordion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ $.widget( "ui.accordion", {
275275
}
276276

277277
// trying to collapse, simulate a click on the currently active header
278-
active = active || this.active;
278+
active = active || this.active[ 0 ];
279279

280280
this._eventHandler({
281281
target: active,

0 commit comments

Comments
 (0)