PDA

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



stever
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);
if(itemEl){
item = this.getComponent(itemEl.id.split('__')[1]);
if(item.disabled){

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

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

jack.slocum
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.