PDA

View Full Version : [OPEN] [OPEN][PR3] Ext.form.ComboBox#forceSelection: true loading issue



jlmorgan
9 Mar 2011, 12:43 PM
Using the following example code:



{
displayField: 'name',
fieldLabel: 'Test',
forceSelection: true,
store: new Ext.data.ArrayStore({
data: [
['1','Alabama'],
['2','Alaska']
],
fields: ['id', 'name']
}),
triggerAction: 'all',
typeAhead: true,
valueField: 'id',
xtype: 'combo'
}


"forceSelection: true" requires two clicks on the trigger area before allowing a selection from the list of items. Having this item set to false loads the data immediately without require two clicks.

Actions (forceSelection: true):
1) Click trigger area
2) Expand occurs displaying a modal-like Loading...
3) Collapse occurs
4) Click trigger area
5) Expand occurs displaying the full list

Actions (forceSelection: false):
1) Click trigger area
2) Expand occurs displaying the full list