Hi All,
I am trying to set the checkbox state value in Change event.
We have client side business rules where on particular condition I can perform some action. it used to work perfectly fine until we upgraded from 5.1.3 to 6.5.2
I can easily reproduce my issue with the below code snippet
behavior on version 5.1.3.228 : The checkbox doesn't get checked, which is expected
behavior on version 6.5.2.463 : The checkbox gets checked and after that you can't unchecked it.
Ext.application({
name : 'Fiddle',
launch : function() {
Ext.create('Ext.form.Panel', {
bodyPadding: 10,
width: 300,
title: 'Checkbox Title',
items: [
{
xtype: 'fieldcontainer',
fieldLabel: 'This is Checkbox',
defaultType: 'checkbox',
items: [
{
boxLabel : 'Check me',
name : 'checkbox',
listeners : {
change : function (){
this.setValue(true)
}
}
}
]
}
],
renderTo: Ext.getBody()
});
}
});