feanor73
3 Jul 2007, 5:23 AM
Hi,
If you add a blank Ext.form.NumberField to a form and then call "reset()" on that field, the text "NaN" displays instead of blank text.
This behavior happens only in 1.1 beta 2. I do not see this in 1.1 beta 1. Perhaps Revision 539 in SVN caused it?
To recreate:
1. Edit "dynamic.js" that ships with the examples for Ext 1.1 beta 2.
2. At line 229, add:
new Ext.form.NumberField({
fieldLabel: 'MyTest',
name: 'mytest'
}),
3. At the end of the file (line 299), add:
var field = form.findField('mytest');
field.reset();
4. load the page
I'll attach a screen shot and the code as well for convenience.
If you add a blank Ext.form.NumberField to a form and then call "reset()" on that field, the text "NaN" displays instead of blank text.
This behavior happens only in 1.1 beta 2. I do not see this in 1.1 beta 1. Perhaps Revision 539 in SVN caused it?
To recreate:
1. Edit "dynamic.js" that ships with the examples for Ext 1.1 beta 2.
2. At line 229, add:
new Ext.form.NumberField({
fieldLabel: 'MyTest',
name: 'mytest'
}),
3. At the end of the file (line 299), add:
var field = form.findField('mytest');
field.reset();
4. load the page
I'll attach a screen shot and the code as well for convenience.