PDA

View Full Version : Checkbox Issues on Google Chrome



Kcarpenter
22 Apr 2011, 10:16 AM
Has any else had issues with checkboxes not firing events in Google Chrome? In particular the Change and Blur events (these I have tried and know do not work for me).

I have found one bug regarding issues with checkboexs in Google Chrome v9 link here (http://www.sencha.com/forum/showthread.php?122953-Ext.grid.EditorGridPanel-checkbox-editor-problem-in-Chrome-9.0.597.86-beta)
But this bug report seems to be more with a checkbox column in an editor grid than just plan check boxes on a panel.

Code I am using for the checkbox:


layout: 'form',
columnWidth: .34,
items: [{
xtype: 'checkbox',
fieldLabel: 'Sign Reloc\'s',
name: 'prmreq_reloc',
listeners: {
change: function (field, value) {
DSSupdate(field.name, format_my_checkboxes(value), 'codes', 0);
}
}

Works fine in FireFox, but the event never fires in Chrome v10

Kcarpenter
25 Apr 2011, 4:29 AM
In case anyone ever finds them selves in this situation again. using the 'handler' config option instead of 'listener: change:' works across all browsers.

Not sure what the difference in them is.


xtype: 'checkbox',
fieldLabel: 'Architectural',
name: 'brdhreq_arch',
handler: function(field, value){
}