-
25 Jul 2011 9:05 AM #1
[ExtJs4 - 4.0.2] Multi-select combobox clearing value on first trigger
[ExtJs4 - 4.0.2] Multi-select combobox clearing value on first trigger
If I define a combo control, set multiSelect to true, and then (after it has been rendered):
1 - call setValue([arr]) on it before the list drops down the first time (eg, in response to the event from another control),
2 - click the trigger to change the selection;
the values that were set (properly) get cleared in the BoundList. I traced through the code and found that the onMaskBeforeShow handler specifically calls "me.getSelectionModel().deselectAll();".
This effectively keeps me from setting multiple values and then changing them; I have to select the new set from scratch. Seems like a bug to me.
-
26 Jul 2011 5:09 AM #2
Never mind. I found the reference in the code that instructs setting lastQuery='' in order to keep from the clearing the initial values.
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote