View Full Version : [2.0b1] TabPanel with items with itemId instead of id

17 Oct 2007, 4:24 PM
In a TabPanel, where one of the tabs has itemId set (and no id set), the TabPanel incorrectly tries to recreate the id by which to get the component when you try and click on it:

findTargets : function(e){
var item = null;
var itemEl = e.getTarget('li', this.strip);
item = this.getComponent(itemEl.id.split('__')[1]);

On the last line, "item" is undefined. The id for this element needs to use something like ... (item.itemId||item.id) + '__' ... in its creation.

18 Oct 2007, 6:38 PM
Thank you for posting. We will investigate it and it will be fixed.

20 Oct 2007, 8:00 AM
I will be submitting some changes to SVN shortly.

This is actually very problematic and may need to be removed. I am sure there are other spots in the codebase which could be affected.