PDA

View Full Version : [FIXED-EXTJSIV-2010][4.0.1] ComboBox change event called twice



Antronak
19 May 2011, 11:44 PM
Hi,

There is a bug in combobox. 'Change' event is called twice when I select value. First call - newValue is null, secend call - newValue is what I selected.


{
xtype: 'combobox',
store: {
fields: ['id', 'caption'],
data: [
{id: 1, caption: "Text1"},
{id: 2, caption: "Text2"}
]
},
editable: false,
displayField: 'caption',
valueField: 'id',
value: 1,
queryMode: 'local',
listeners: {
scope: this,
change: function(cmp, newValue) {

}
}
}

medusadelft
23 May 2011, 3:36 AM
I can confirm this, I have the same problem. And with the oldValue (3rd parameter) it is just the other way around.

lordsc
6 Jun 2011, 11:46 PM
status is "fixed", but where is the fix??

conorarmstrong
7 Jun 2011, 2:19 AM
presume it will be in v4.0.2 ???

scottmartin
7 Jun 2011, 7:34 AM
Sencha,

This would be where a Bug Tracking System would be a great help. Even if it is read only to the public.

-Adding numerous "Will it be fixed??" posts to your forum
-Having to search the forums for the correct words to find this post in the first place
-Wasting your resources in answering when the bug tracking system already has the answer
-Updating numerous threads on the same question

133704-Sencha-should-have-a-bug-tracking-system (http://www.sencha.com/forum/showthread.php?133704-Sencha-should-have-a-bug-tracking-system-!)

Regards,
Scott

abe.elias
8 Jun 2011, 12:41 AM
Fixed implies that it will be in the next version. In this case... 4.0.2

edspencer
8 Jun 2011, 1:24 AM
We just released a 4.0.2 RC at http://www.sencha.com/forum/showthread.php?136227-Ext-JS-4.0.2-RC-released - please try it!