#14052 closed bug (notabug)
Accordion ignores first item after being cloned
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.10.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When cloning an element containing an accordtion with the events
.clone(true)
the accordion missbehaves. No matter which state the accordion was in before, the new cloned accordion opens the first item automatically. And when clicking on other items, the first item stays open! It is, as the accordion forgot about the first item at all. Only after collapsing the first item, the accordion then works just as expected.
Change History (6)
comment:1 follow-ups: 2 3 Changed 10 years ago by
comment:2 Changed 10 years ago by
Replying to [email protected]…:
I created a quick jsFiddle to illustrate the bug better: http://jsfiddle.net/rCDQx/4/
comment:3 Changed 10 years ago by
Replying to [email protected]…:
I created a quick jsFiddle to illustrate the bug better: http://jsfiddle.net/rCDQx/
Small fiddle update: http://jsfiddle.net/rCDQx/4/
comment:4 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
This isn't a jQuery core bug. Ask for help on a forum and file a bug on the jQuery UI tracker if they agree it's a UI bug.
comment:5 Changed 10 years ago by
It's a jQuery bug. I really don't care which part of jQuery is involved. You have to look into it first to find out, don't you? Maybe its because the "clone()" does not work properly, this would be jQuery core, no?
comment:6 Changed 10 years ago by
This is not a bug. jQuery UI doesn't support cloning widgets. See http://contribute.jquery.org/wont-fix/
I created a quick jsFiddle to illustrate the bug better: http://jsfiddle.net/rCDQx/