Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#14052 closed bug (notabug)

Accordion ignores first item after being cloned

Reported by: [email protected] 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 Changed 10 years ago by [email protected]

I created a quick jsFiddle to illustrate the bug better: http://jsfiddle.net/rCDQx/

comment:2 in reply to:  1 Changed 10 years ago by anonymous

Replying to [email protected]:

I created a quick jsFiddle to illustrate the bug better: http://jsfiddle.net/rCDQx/4/

comment:3 in reply to:  1 Changed 10 years ago by [email protected]

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 dmethvin

Resolution: notabug
Status: newclosed

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 anonymous

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 anonymous

This is not a bug. jQuery UI doesn't support cloning widgets. See http://contribute.jquery.org/wont-fix/

Note: See TracTickets for help on using tickets.