-
26 Dec 2012 3:17 AM #1
Ext.TabPanel: event 'activate' not fired for first added tab
Ext.TabPanel: event 'activate' not fired for first added tab
Press button "Add" twice. In console print info only for "Panel-2". After select "Panel-1" print info for "Panel-1".
P.S. In 4.0.7 for "Panel-1" event 'activate' fired twice for first activate...
Code:var cnt = 0; var b_add = Ext.create('Ext.Button', { renderTo: document.body, text: 'Add', handler: function() { cnt++; var p = Ext.create('Ext.panel.Panel', { title: 'Panel-' + cnt, items: [ {html: 'Text-' + cnt} ], listeners: { activate: function(a) { console.info("Activate", a); } } }); panel.add(p); panel.setActiveTab(p); } }); var panel = Ext.create('Ext.tab.Panel', { renderTo: document.body, width: 500, height: 300 });Last edited by mitchellsimoens; 28 Dec 2012 at 9:01 AM. Reason: fix test case
-
28 Dec 2012 9:02 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
Thanks for the report! I have opened a bug in our bug tracker.
You found a bug! We've classified it as
EXTJSIV-8121
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote