Skip to main content

Search and Top Navigation

#4548 closed bug (fixed)

Opened May 23, 2009 02:31AM UTC

Closed July 12, 2010 01:33PM UTC

[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...

Attachments (0)
Change History (3)

Changed June 01, 2009 03:29PM UTC by jzaefferer comment:1

milestone: TBD1.8

Changed September 30, 2009 01:21PM UTC by JamesBarwell comment:2

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.

Changed July 12, 2010 01:33PM UTC by scottgonzalez comment:3

milestone: 1.91.8.2
resolution: → fixed
status: newclosed

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