PDA

View Full Version : [FIXED-409][3.??] Combo removeMode set to 'container'



markalroberts
6 Jan 2010, 7:33 AM
If you remove() a combobox from a container, the combobox's container is also removed!

The combobox's removeMode = 'container', so this code gets called in the component's destroy method:



if(this.rendered){
this.el.remove();
if(this.actionMode == 'container' || this.removeMode == 'container'){
this.container.remove();
}
}


This is totally breaking my innerCt's dom in my column layout :(

markalroberts
6 Jan 2010, 7:34 AM
Workaround for now:



cont.remove(cmb);
if (cont.rendered && cont.layout.innerCt && !cont.layout.innerCt.dom) cont.layout.innerCt = null;

Jamie Avins
7 Jan 2010, 3:17 PM
Fixed in svn 5856, was added inadvertently in 5391.