Opened 10 years ago

Closed 9 years ago

#4548 closed bug (fixed)

[accordion] "activate:-1" fails in IE

Reported by: ncooley Owned by:
Priority: major Milestone: 1.8.2
Component: ui.accordion Version: 1.7.1
Keywords: activate method Cc:
Blocked by: Blocking:

Description

The accordion method 'activate' does not currently function as described at: http://jqueryui.com/demos/accordion/#method-activate does not work in IE browsers...

According to documentation, the following:

$('.selector').accordion('activate', -1);

should close all accordion panes when value of 'collapsible' is set to 'true'... What happens now (in IE only) is when bound to 'mouseleave' event bound to same accordion, mousing out only closes all when mousing off the first element... All others leave the first element open.

Additionally, when passing a non-numerical value to 'activate' (ie: "kldsjlfkj") accordion closes as desired...

Change History (3)

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

Milestone: TBD1.8

comment:2 Changed 10 years ago by JamesBarwell

This seems to be a possible bug with jQuery's :eq selector. When passed an index of -1, in IE it returns the first element whereas Firefox returns an empty array.

The Accordion documentation seems to have been updated anyway specifying that false should be passed in to close all so this doesn't seem to require a fix.

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

Milestone: 1.91.8.2
Resolution: fixed
Status: newclosed

As JamesBarwell mentions, you now need to pass false to close all panels.

Note: See TracTickets for help on using tickets.