Opened 8 years ago

Closed 8 years ago

#6864 closed bug (worksforme)

Accordion : activate method doesn't take into account the current state (active or hidden) of the content part

Reported by: jordanp Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.accordion Version: 1.8.8
Keywords: Cc:
Blocked by: Blocking:

Description

The activate method doesn't take into account the current state (active or hidden) of the content part.

Example :

$(document).ready(function () {  
  $("#accordion1").accordion({
    collapsible: true,
    active: 0  });
  $("#accordion1").accordion("activate", 0);
  });

Should result in content part #0 being active. It's not the case.

Change History (1)

comment:1 Changed 8 years ago by Scott González

Resolution: worksforme
Status: newclosed

The method name and behavior may be confusing, but the behavior isn't wrong. It's not obvious whether activate is a shortcut to the active option or whether it is meant to mimic the user manually activating the panel. The actual behavior is to mimic the user activating a panel. Changing this behavior would be a backward incompatible change and this method is being deprecated in 1.9. Therefore, no change will be made.

Note: See TracTickets for help on using tickets.