I am getting the following error when a component is removed from a fieldSet inside a form.
field.el.dom is undefined field.el.dom.qtip = '';
Is there some configuration setting I am missing?
Code:
var AttributeFieldSet = new Ext.form.FieldSet({
checkboxToggle: true,
id: 'AttributeFieldSet',
title: 'Search by Attribute',
collapsed: true,
items: [
new Ext.Button({
text: 'Add Attributes',
handler: addAttributeCompositeField,
autoHeight: true,
autoWidth: true,
iconCls: 'icon-plus'
})]
});
var docs = new Ext.FormPanel({
id: 'reqBrowseForm',
autoHeight: true,
bodyBorder: true,
autoDestroy: false,
layout: 'form',
frame: true,
defaultType: 'textfield',
items: [docTypeComboBox, docName, viewComboBox, AttributeFieldSet],
buttons: [{
text: 'Search',
handler: docsSubmitForm
}, {
text: 'Clear',
handler: function () {
docs.form.reset();
docs.trackLabels = true;
//AttributeFieldSet.collapse(true);
console.log('attributeIndex:' + attributeIndex);
if (attributeIndex > 2) for (attributeIndex; attributeIndex > 2; attributeIndex--) {
console.log(attributeIndex);
AttributeFieldSet.remove(AttributeFieldSet.get(AttributeFieldSet.items.length - 1))
AttributeFieldSet.doLayout();
}
}
}
}]
});