PDA

View Full Version : [FIXED]formBind on button in FormPanel



rchloupe
9 Mar 2011, 8:24 AM
I'm putting formBind on button in a formPanel, however, the button is not disabled when the page is first displayed. To get the button to be disabled I have enter invalid data into a form field.



Ext.create('Ext.form.FormPanel', {
items: [{
xtype: 'textfield',
fieldLabel: 'First Name',
allowBlank:false
}],
buttons: [{
text: 'Save',
formBind: true,
handler: function() { console.log('click'); }
}]
}).render(document.body);

evant
15 Mar 2011, 3:19 AM
This should be fixed in the next release.