PDA

View Full Version : [FIXED][3.0rc3] BasicForm action events fired twice



zombeerose
6 Jul 2009, 7:20 AM
Ext version tested:
Ext 3.0 RC3Browser versions tested against:
FF3 (firebug 1.3.3 installed)Operating System:
WinXP ProDescription:
Are the action events for a basicform supposed to be fired twice?Test Case:


var w = new Ext.Window({
height: 300
,width: 300
,layout: 'fit'
,items: [{
buttons: [{
text: 'Submit'
,type: 'submit'
,scope: this
,handler: function() {
console.log('handler',arguments);
var f = Ext.getCmp('my_form');
f.getForm().submit({
url: '/some/url'
});
}
}]
,frame: true
,id: 'my_form'
,items: [{
fieldLabel: 'Field'
,xtype: 'textfield'
}]
,listeners: {
actioncomplete: {fn:function() { console.log('actioncomplete', arguments); }}
,actionfailed: {fn:function() { console.log('actionfailed', arguments); }}
,beforeaction: {fn:function() { console.log('beforeaction',arguments); }}
}
,xtype: 'form'
}]
});
w.show();
Steps to reproduce the problem:

The result that was expected:
The beforeaction and actionfailed events are fired two times for the test case. I expected them to only fire one time each.The result that occurs instead:
Fired twiceScreenshot or Video:


Debugging already done:
nonePossible fix:

not provided

evant
6 Jul 2009, 7:22 AM
Fixed in SVN already, thanks for the report.

Condor
6 Jul 2009, 7:22 AM
Do not use a type:'submit' button if you don't want to do a standardSubmit!

zombeerose
6 Jul 2009, 7:36 AM
Thanks evant. I read that the Final release will come out today. Will that fix be included?

Sorry Condor. I'll keep that in mind.