PDA

View Full Version : Disabled ComboBoxes (erratically) trigger an Ext.fly error in IE6



JKeane
12 Aug 2011, 10:26 AM
The exact error is: 'Ext.fly(...)' is null or not an object. This is in Ext.EventObjectImpl.getTarget.

Here's the View that's causing the issue.


Ext.define("CF.view.Edit", {
extend: "Ext.window.Window",
alias: "widget.edit",
title: "Client Fees - Edit",
width: 320,
height: 260,
autoShow: true,
buttonAlign: "left",
initComponent: function () {
this.items = [{
xtype: "form",
frame: true,
fieldDefaults: {
labelWidth: 120
},
items: [{
xtype: "textfield",
name: "companyname",
fieldLabel: "Company/Sponsor"
}, {
xtype: "combo",
name: "productseq",
fieldLabel: "Product",
store: new CF.store.Products(),
queryMode: "local",
displayField: "productName",
valueField: "productSeq"
}, {
xtype: "combo",
disabled: true,
name: "feetype",
fieldLabel: "Fee Type",
store: new CF.store.FeeTypes(),
queryMode: "local",
displayField: "financeFeeDesc",
valueField: "financeFeeSeq"
}, {
xtype: "combo",
disabled: true,
name: "iconproductcode",
fieldLabel: "ICON Product",
store: new CF.store.IconProducts(),
queryMode: "local",
displayField: "iconProductName",
valueField: "iconProductCode"
}, {
xtype: "numberfield",
name: "feeamt",
fieldLabel: "Fee ($)",
hideTrigger: true,
keyNavEnabled: false,
mouseWheelEnabled: false
}, {
xtype: "combo",
name: "feemonth",
fieldLabel: "Month",
store: (function () {
var x = [],
i;
for (i = 0; i < 12; i++) {
x.push([i + 1, Ext.Date.monthNames[i]]);
}
return x;
})()
}, {
xtype: "combo",
name: "feeyear",
fieldLabel: "Year",
store: (function () {
var x = [];
for (var year = 2007; year <= (new Date).getFullYear(); year++) x.unshift(year);
return x;
})()
}]
}];
this.buttons = [{
text: 'Save',
action: 'save'
}, {
text: 'Cancel',
scope: this,
handler: this.close
}];

this.callParent(arguments);
}
});