PDA

View Full Version : [CLOSED] 3.3.1 Textfield onChange event bug



mgulden
21 Dec 2010, 1:05 AM
When you use setValue method of textfield startValue property of textfield does not change.
So if you use setValue and then enter same previous value to the textfield change event does not fire.

Condor
21 Dec 2010, 2:44 AM
That is open for interpretation. I could just as well make a case for the current method to be correct.

VT-TizianoF
23 Dec 2010, 5:05 AM
That is open for interpretation. I could just as well make a case for the current method to be correct.

Documentation states:

change: ( Ext.form.Field this, Mixed newValue, Mixed oldValue )
Fires just before the field blurs if the field value has changed

Not, "if the field value is different than the original one"

Condor
23 Dec 2010, 5:09 AM
Yes, but what is the original value?

Currently Ext defines the original value as: the value the field had when it got the focus.

You define it as: the value the field had when it got the focus OR the value that was assigned after it got the focus.

IMHO your interpretation is needlessly complex and I like the current Ext method more.