Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#6232 closed feature (worksforme)

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 (982 bytes) - added by winthrope 8 years ago.
Elaboration of nested accordion behavior

Download all attachments as: .zip

Change History (5)

comment:1 Changed 8 years ago by Scott González

Resolution: worksforme
Status: newclosed

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

Changed 8 years ago by winthrope

Attachment: 6232.js added

Elaboration of nested accordion behavior

comment:2 Changed 8 years ago by winthrope

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.

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

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.

comment:4 Changed 6 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.