Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2009
    Location
    Austin, TX
    Posts
    33
    Vote Rating
    0
    wiz61 is on a distinguished road

      0  

    Default [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.

  2. #2
    Sencha Premium Member
    Join Date
    Oct 2009
    Location
    Austin, TX
    Posts
    33
    Vote Rating
    0
    wiz61 is on a distinguished road

      0  

    Default


    Never mind. I found the reference in the code that instructs setting lastQuery='' in order to keep from the clearing the initial values.