PDA

View Full Version : [FIXED] Text Field Listeners returning inappropriate field object



tomalex0
12 Oct 2011, 10:48 PM
Hi,

This is workaround which shows issue with listerners like keyup, focus ,blur associated with textfied.
First param of each of these should be field object reference but it is not what i'm getting. But for change event it works fine.


{
xtype: 'textfield',
name : 'name',
label: 'Name',
useClearIcon: true,
autoCapitalize : false,
listeners : {
keyup: function(field) {
console.log(field,"keyup");
},
focus: function(field) {
console.log(field,"focus");
},
change: function(field) { // works fine
console.log(field.getValue(),"change");
},
blur: function(field) {
console.log(field,"blur");
}
}
}

Jamie Avins
13 Oct 2011, 7:29 AM
Thank you for the report, a cleaning up event signatures and making them more consistent is an issue we are looking to fix going forward.