Opened 11 years ago

Last modified 11 years ago

#10727 closed defect

ScrollingTabContainer tab click calls selectChild twice — at Initial Version

Reported by: Adam Peller Owned by:
Priority: high Milestone: 1.4.2
Component: Dijit Version: 1.4.0
Keywords: Cc:
Blocked By: Blocking:

Description

In test_TabContainer, click on any tab to select a new tab. If you put a log in selectChild, you'll see it gets called twice. While it should not be catastrophic, some apps may not be expecting this condition and it can cause regressions. Thanks to Phil Berkland @ IBM for spotting this.

StackController?.onButtonClick calls container.selectChild. That publishes an event which triggers onButtonClick a second time via ScrollingTabController?.onSelectChild:280

tab.onClick(null);

Change History (0)

Note: See TracTickets for help on using tickets.