Skip to main content

Bug Tracker

Side navigation

#3111 closed feature (fixed)

Opened July 01, 2008 01:23PM UTC

Closed July 13, 2008 02:46PM UTC

[accordion] inconsistent behaviour in accordionchange

Reported by: gerry Owned by: joern
Priority: major Milestone: 1.2.5
Component: plugin Version: 1.2.6
Keywords: accordion Cc:
Blocked by: Blocking:
Description

Pretext: accordion configured with "active" set to false, and "alwaysOpen" set to false.

There's an inconsistency in the behaviour of the "oldContent" and "newContent" properties that are passed as data to the accordionchange event handler.

When opening any item while the entire accordion is collapsed, the "oldContent" will contain 0 elements as expected. However, when closing all open items, the "newContent" will contain the last opened item, which seems inconsistent as all items are closed and there is no content to be displayed.

One would expect that when closing the only open item, "oldContent" contains the last opened item, and "newContent" is set to empty.

Attachments (0)
Change History (2)

Changed July 01, 2008 03:32PM UTC by flesler comment:1

component: coreplugin
keywords: → accordion
owner: → joern
summary: UI/Accordion: inconsistent behaviour in accordionchange[accordion] inconsistent behaviour in accordionchange

Changed July 13, 2008 02:46PM UTC by joern comment:2

resolution: → fixed
status: newclosed

Fixed in revision 451, see http://ui.jquery.com/bugs/changeset/451