PDA

View Full Version : [FIXED] 'resetOriginalValue' does not work for timefield



grabka
15 Dec 2012, 6:03 AM
Hi,

In contrast to 'datefield' which seems to be working fine:

this.down('#startDate').setValue(startDate).resetOriginalValue();

the following code does not work:

this.down('#startTime').setValue('00:00').resetOriginalValue();

I am getting:
Cannot call method 'resetOriginalValue' of undefined.


Reproducible on:
Ext JS: 4.1.1

Thanks,
Marcin

mitchellsimoens
15 Dec 2012, 7:24 AM
Looks like it's missing a return in setValue. Should be simple enough.

Thanks for the report! I have opened a bug in our bug tracker.