PDA

View Full Version : [OPEN-1201] Issue with emptyText config option in ComboBox components



dreas
12 Aug 2010, 11:21 PM
Ext version tested:


Ext 3.2.2


Adapter used:


ext


css used:


only default ext-all.css


Browser versions tested against:


FF3.6.8 (firebug 1.5.4 installed)


Operating System:


WinXP Pro


Description:


As already reported by a forum user here (http://www.sencha.com/forum/showthread.php?105042-Combobox-click-on-quot-empty-text-quot-issue), there is an issue with the emptyText config option in ComboBox components when used along with certain other config options namely editable:false and forceSelection:true. The dropdown list does not expand when the field is clicked at a position where the emptyText is shown.


Test Case:



new Ext.form.ComboBox({
fieldLabel: 'Test',
hiddenName: 'test',
store: [['', 'none'], ['1ST', 'First option'], ['2ND', 'Second option'], ['3RD', 'Third option']],
mode: 'local',
triggerAction: 'all',
emptyText: 'Select an option...',
selectOnFocus: true,
forceSelection: true,
editable: false,
width:190
})
Steps to reproduce the problem:


Open examples/form/xml-form.js in your editor
Go to the item list of the FormPanel and add above code to the FieldSet
Open examples/form/xml-form.html in your browser
Click on the empty text in the ComboBox


The result that was expected:


Dropdown list should expand


The result that occurs instead:


Dropdown list does not expand


Screenshot or Video:


none


Debugging already done:


none


Possible fix:


not provided

Jamie Avins
16 Aug 2010, 8:47 AM
Thank you for the report.