Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#9395 closed bug (wontfix)

ACCORDION IGNORES FIRST ITEM AFTER BEING CLONED

Reported by: simon.ferndriger Owned by:
Priority: minor Milestone: none
Component: ui.accordion Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:

Description

When cloning an element containing an accordtion with events, 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.

Have a look at the jsFiddle example


Steps to reproduce failure

Click on section 2 -> section 1 stays open Click on section 1 -> the accordion works (now)

Have a look at the jsFiddle example

Change History (3)

comment:1 Changed 6 years ago by simon.ferndriger

Steps to reproduce failure

  1. Click on section 2 -> section 1 stays open (instead of closing -> bug!)
  2. Click on section 1 -> from now on, the accordion works

Additional issue

When hiding ALL items by default with "active: false", the cloned accordion will still show the first element by default (which it shouldn't, strictly speaking! -> bug!)

Last edited 6 years ago by simon.ferndriger (previous) (diff)

comment:2 Changed 6 years ago by tj.vantoll

Resolution: wontfix
Status: newclosed

Hi simon.ferndriger,

Thanks for taking the time to contribute to the jQuery UI project. Unfortunately, cloning widgets is not supported: http://contribute.jquery.org/wont-fix/.

comment:3 Changed 6 years ago by simon.ferndriger

Ah, OK.

Note: See TracTickets for help on using tickets.