#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)
Change History (5)
comment:1 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
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 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
The third accordion isn't broken because it's nested, it's broken because you're initializing it while it's hidden. See #3905.
Accordions do nest: http://jsbin.com/uxafu3