PDA

View Full Version : editable false combo box not expanding on single click



SurenderBhyan1
20 Oct 2017, 5:01 AM
Hi,


I am trying to expand a non editable combobox on field click. For this I am using below override (I want to use this for whole application).




Ext.override(Ext.form.field.ComboBox, {
initComponent: function () {
this.callParent();
this.on('focus', function () {
this.expand();
});
}
});


but combobox just collapse after a fluctuation.


Note: This is happening with editable: false comboboxes. Editable combo box are expanding fine.


Please see below fiddle (Click on the input field itself rather than trigger)


28kj

https://fiddle.sencha.com/#view/editor&fiddle/28kj

Version : this is happening from version 4.2.1 to 6.5.1

Can anyone please provide a workaround.

SurenderBhyan1
22 Oct 2017, 7:58 PM
Any update guys.

This is also happening with version 6.x.x

Update: If I use 'click' listener, then it works fine. But i want it to be for focus event as I can come to this combobox using TAB key too.




Ext.override(Ext.form.field.ComboBox, {
initComponent: function () {
this.callParent();
this.on('focus', function () {
this.expand();
});
}
});