Ticket #6232 (closed feature: worksforme)

Opened 3 years ago

Last modified 7 months ago

Accordion widgets should nest.

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

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

6232.js Download (982 bytes) - added by winthrope 3 years ago.
Elaboration of nested accordion behavior

Change History

comment:1 Changed 3 years ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to worksforme

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

Changed 3 years ago by winthrope

Elaboration of nested accordion behavior

comment:2 Changed 3 years ago by winthrope

  • Status changed from closed to reopened
  • Resolution worksforme deleted

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 3 years ago by scott.gonzalez

  • Status changed from reopened to closed
  • Resolution set to worksforme

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 7 months ago by scott.gonzalez

  • Milestone TBD deleted

Milestone TBD deleted

Note: See TracTickets for help on using tickets.