Bug Tracker

Modify

Ticket #3111 (closed feature: fixed)

Opened 6 years ago

Last modified 6 years ago

[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:
Blocking: Blocked by:

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.

Change History

comment:1 Changed 6 years ago by flesler

  • Keywords accordion added
  • Owner set to joern
  • Component changed from core to plugin
  • Summary changed from UI/Accordion: inconsistent behaviour in accordionchange to [accordion] inconsistent behaviour in accordionchange

comment:2 Changed 6 years ago by joern

  • Status changed from new to closed
  • Resolution set to fixed

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.