PaloAltoNetworks
25 May 2010, 2:59 PM
Version 3.2.0
How to reproduce:
modify the combos.js in the example/form/ directory and add autoSelect : true in the config.
Behavior:
the first entry in the state dropdown doesn't get selected, as opposed to what the documentation said.
I briefly diagnose this by setting breakpoints.
It seems that combo is listening to the 'load' event in the store, and the autoselect is handled in this onload handler.
However, for array store, the store is already loaded when you construct it, so the 'load' event is already fired by the time you bind it to the combo box.
Hope this helps.
How to reproduce:
modify the combos.js in the example/form/ directory and add autoSelect : true in the config.
Behavior:
the first entry in the state dropdown doesn't get selected, as opposed to what the documentation said.
I briefly diagnose this by setting breakpoints.
It seems that combo is listening to the 'load' event in the store, and the autoselect is handled in this onload handler.
However, for array store, the store is already loaded when you construct it, so the 'load' event is already fired by the time you bind it to the combo box.
Hope this helps.