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

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() {
var f = Ext.getCmp('my_form');
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'
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

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

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

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.