Opened 14 years ago
Closed 13 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 14 years ago by
Milestone: | TBD → 1.8 |
---|
comment:2 Changed 13 years ago by
comment:3 Changed 13 years ago by
Milestone: | 1.9 → 1.8.2 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
As JamesBarwell mentions, you now need to pass false to close all panels.
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.