Side navigation
#14052 closed bug (notabug)
Opened June 21, 2013 07:32AM UTC
Closed June 23, 2013 04:46PM UTC
Last modified June 24, 2013 01:32PM UTC
Accordion ignores first item after being cloned
Reported by: | ferndriger.business@gmail.com | 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.
Attachments (0)
Change History (6)
Changed June 21, 2013 08:36AM UTC by comment:1
Changed June 21, 2013 08:43AM UTC by comment:2
Replying to [comment:1 ferndriger.business@…]:
I created a quick jsFiddle to illustrate the bug better: http://jsfiddle.net/rCDQx/4/
Changed June 21, 2013 08:44AM UTC by comment:3
Replying to [comment:1 ferndriger.business@…]:
I created a quick jsFiddle to illustrate the bug better: http://jsfiddle.net/rCDQx/
Small fiddle update:
Changed June 23, 2013 04:46PM UTC by comment:4
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.
Changed June 24, 2013 07:14AM UTC by comment:5
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?
Changed June 24, 2013 01:32PM UTC by comment:6
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/