Ticket #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 | |
| 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
Change History
comment:1 Changed 3 years ago by scott.gonzalez
- Status changed from new to closed
- Resolution set to worksforme
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.



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