PDA

View Full Version : [FIXED] TimeField value not cleared from the list on form reset



netemp
18 Oct 2011, 9:56 PM
REQUIRED INFORMATION


Ext version tested:4.0.2a


Browser versions tested against:

IE9
IE8
FF6
CHRMOE14.0

Description:

The last chosen value in timefield drop down remains highlighted even on form reset. And the user is not allowed to choose this value again until he first chooses some other value in the list

Steps to reproduce the problem:

Create a form panel with a timefield in it
Create a button to reset the form
Choose any value in the timefield from the list (say 2.00 AM)
Using the reset button clear the form
Go to the timefield and try choosing the last value again (that is, 2.00 AM). It will not allow to select this value unless you first choose some other value and then re-select it

The result that was expected:

On reseting the form, the last chosen value of timefield should have been cleared and user should be allowed to choose it again if required

The result that occurs instead:

The last chosen value is not allowed to be chosen again unless some other value is chosen first

Test Case:




Ext.create('Ext.form.Panel', {

title: 'Simple Form',
bodyPadding: 5,
width: 350,
url: 'save_form.php',
layout: 'anchor',
defaults: {
anchor: '100%'
},
items: [{
xtype:'textfield',
fieldLabel: 'Name'
}, {
xtype:'timefield',
fieldLabel:'Time Test'
}],
buttons: [{
text: 'Reset',
handler: function () {
this.up('form').getForm().reset();
}
}],
renderTo: Ext.getBody()
});



Video:

Attached

http://screencast.com/t/skkNwSYArAsY

Operating System:

Win 7
WinXP

netemp
19 Oct 2011, 9:11 PM
Anyone has any idea about this?

Webtel
4 Apr 2012, 4:59 AM
fld.setValue doesent refreh dropdown list selection.

theres no way to clear selected item from the list.

also after clicking already selected item (even if it is not real fld.value) dropdown wont hide.

Extjs 4.07.