Opened 10 years ago

Closed 9 years ago

#4618 closed bug (fixed)

When options collapsible:true Getter active returns inital active index or null

Reported by: Coolhand2120 Owned by:
Priority: minor Milestone: 1.8.2
Component: ui.accordion Version: 1.7.2
Keywords: options active getter collapsible Cc: powella@…
Blocked by: Blocking:

Description

When you create a accordion with the option collapsible:true, using the option active to get the index returns an incorrect value.

getter should return the active index, however it returns the index intally set using the active:index option var active = $('.selector').accordion('option', 'active');

This also effects the object UI in the following function, again returning the inital active object rather than the curretly selected object:

$('#accordion').bind('accordionchange', function(event, ui) {

ui.newHeader jQuery object, activated header

}

Here is a URL to an example http://jsbin.com/icotu

The alert that occurs when the page is loaded should have the selected index, it says "null" however, matching the inital activated object.

Attached is another example, almost exactly the same as the above URL.

Attachments (1)

ui_Accordion_bug.html (2.4 KB) - added by Coolhand2120 10 years ago.
ui Accordion bug

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by Coolhand2120

Attachment: ui_Accordion_bug.html added

ui Accordion bug

comment:1 Changed 10 years ago by Jörn Zaefferer

Milestone: TBD1.8

comment:2 Changed 9 years ago by Scott González

Milestone: 1.91.8.2
Resolution: fixed
Status: newclosed

This was fixed in a previous release. You can verify with the referenced jsbin example by changed jQuery to 1.4.2 and jQuery UI to 1.8.2.

Note: See TracTickets for help on using tickets.