PDA

View Full Version : [FIXED-459][3.??] CycleButton setActiveItem bug



vladsch
20 Jan 2010, 2:16 AM
Hi,

if call setActiveItem then previous active item is still checked in the menu

Steps to reproduce:

1. Use the following code


var btn1 = new Ext.CycleButton({
showText: true,
prependText: 'View as ',
renderTo: Ext.getBody(),
items: [{
text:'text only',
checked:true
},{
itemId: 'htmlItem',
text:'HTML'
}]
});

var btn2 = new Ext.Button({
text: "Set Second Item As Active",
renderTo: Ext.getBody(),
handler: function(){
btn1.setActiveItem('htmlItem');
}
});


2. Click "Set Second Item As Active" button
3. Click on arrow in the CycleButton to see the menu
4. Notice that both items are checked

evant
4 Feb 2010, 7:34 AM
A fix has been added to SVN.