I have a question about some code inside the refresh() method of the ComboBox widget. Specifically, the following lines:
In my application, the dataSource of a combobox needs to change based on the user making various choices. In this case, we use ComboBox.setDataSource() to update the combo. When the user clicks the dropdown button to open the popup, the combo does a refresh which causes the above code to run. That code selects the first item in the data, even though "suggest" and "highlightFirst" are both false. Moreover, the "change" event is not fired, so the combo shows a selection, but our application code is not notified.
Why does refresh() select an item? Shouldn't it just rebuild the options list but keep other state in the control unchanged?
Thanks,
AHG
if (state !== STATE_FILTER && !that._fetch) {
that._selectItem();
}
Why does refresh() select an item? Shouldn't it just rebuild the options list but keep other state in the control unchanged?
Thanks,
AHG