View Full Version : [INFOREQ][3.??] numberfield allow negative bug

12 Jan 2010, 1:02 AM
hi to all,
i think there's a problem with the allownegative of numberfield in ext 3.0. i tested this on firefox and it's ok but on IE it has problem. i even tried the maskRe: /[0-9]/ . in firefox it doesn't accept the negative character which is '-'. but in IE it accepts the negative character. so i had to find a work around to disallow the (-) sign and so i came up with the stripCharsRe config. see my code below.

xtype: 'numberfield',
fieldLabel: 'LTR Amount',
msgTarget: 'under',
id: 'ltramount',
width: 180,
name: 'ltramount',
allowBlank: false,
stripCharsRe: /[-]/,
allowNegative: false,
allowDecimal: true,
value: 0,
autoCreate: { tag: 'input', type: 'text', size: '10', autocomplete: 'off', maxlength: '10'}

Jamie Avins
13 Jan 2010, 4:27 PM
What version of Ext are you using with this?

14 Jan 2010, 10:58 AM
What version of Ext are you using with this?

i used this for ext 3.0

14 Jan 2010, 11:02 AM
is this already fixed in version 3.1?

Jamie Avins
14 Jan 2010, 11:26 AM
I know there was a validation change I made to fix issues between FF and IE, I'm trying to find it.

Jamie Avins
14 Jan 2010, 12:06 PM
I believe this was handled in svn 5446 where the maskRE was not being handled properly across browsers. Can you try this in 3.1?

17 Jan 2010, 5:33 AM
i'll try to use ext 3.1 next to check whether this bug already has been fixed.