Skip to main content

Search and Top Navigation

#6232 closed feature (worksforme)

Opened October 27, 2010 03:25AM UTC

Closed October 30, 2010 05:46PM UTC

Last modified October 11, 2012 09:15PM UTC

Accordion widgets should nest.

Reported by: winthrope Owned by:
Priority: minor Milestone:
Component: ui.accordion Version: 1.8.5
Keywords: Cc: winthrope
Blocked by: Blocking:
Description

Well, at least I need them to, and I believe that I know how to do it, and as a strictly unintended consequence, the solution seems to fix bug #4549 - Accordion and Tab causes multiple "active" tabs.

Attachments (1)
  • 6232.js (1.0 KB) - added by winthrope October 30, 2010 03:04PM UTC.

    Elaboration of nested accordion behavior

Change History (4)

Changed October 27, 2010 02:30PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

Accordions do nest: http://jsbin.com/uxafu3

Changed October 30, 2010 03:29PM UTC by winthrope comment:2

resolution: worksforme
status: closedreopened

I very much appreciate your response, but in the words of my darling children, "Do not!".

The attached file is an elaboration of the helpful example that you posted with your first response. The first nested accordion (accordion-1a) still appears to work fine. I have just added a second nested accordion, accordion-2. Try it, you'll hate it.

If I override the header option (header: "h3"), the behavior gets even worse.

Using the first version of jQueryUI 1.8.5 that I downloaded from the jQueryUI Website, I was able to fix this behavior by changing

self.headers = self.element.find( options.header )

to

self.headers = self.element.children( options.header )

Perhaps the googleapis code is a later edition, but my former work-around now appears to fail.

Changed October 30, 2010 05:46PM UTC by scottgonzalez comment:3

resolution: → worksforme
status: reopenedclosed

The third accordion isn't broken because it's nested, it's broken because you're initializing it while it's hidden. See #3905.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:4

milestone: TBD

Milestone TBD deleted