View Full Version : TimeField select event

3 Dec 2012, 11:43 PM
It seems like a bug that 'select' is not fired when I select the value in drop-down list for the second time. I suppose that now it works like 'change' event. Please, open the attached test case, select any time before your current time. Here you have the event fired. Now try for the second time to open drop-down list:
It has the last selected value highlighted. Try to click on it for the second time - on the same value. Nothing happens - 'select' event is not fired. And I've tried to clean the highlighted value - no luck.
Please, advise how to resolve the problem.

5 Dec 2012, 11:45 AM
What Ext JS 4.x.x version are you using? Testing in 4.1.1 this code worked when I selected values multiple times:

new Ext.form.Panel({
renderTo : document.body,
items : [
xtype : 'timefield',
fieldLabel : 'Time',
listeners : {
select : function() {

If you are selecting the same value it won't fire as I would expect it not to, it's already selected.

5 Dec 2012, 11:18 PM
I use ExtJS 4.1.2.
The question is: how to deselect the drop-down list highlighted value in case when I set a new combobox value manually?
If I can't do that, then the question is - how can I handle the second selection on the same value in drop-down list?