You found a bug! We've classified it as
EXTJS-10218
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
-
Sencha User
Can paste text into numberfield
REQUIRED INFORMATION
Ext version tested:
Browser versions tested against:
Description:
- It's possible to paste text from clipboard (Ctrl+V) into numberfield or textfield with property maskRe set to limited set of chars.
Operating System:
Test:
Code:
new Ext.form.Panel({
renderTo : document.body,
items : [
{
xtype : 'numberfield',
fieldLabel : 'Number'
},
{
xtype : 'textfield',
fieldLabel : 'Text to copy',
value : 'abcd'
},
{
xtype : 'component',
html : 'Select the text from the textfield and paste it into the number field'
}
]
});
Last edited by mitchellsimoens; 14 Jun 2013 at 6:53 AM.
Reason: added test
-
Thanks for the report! I have opened a bug in our bug tracker.
-
Sencha Premium Member
Are there any plans to fix this problem? This bug is open for such a long time even though it seems everyone who uses textfields with some restrictions will have problems with this.
-
Sencha Premium Member
stripCharsRe does what we need
-
Sencha Premium User
this is still affecting EXTJS 6.7.x.
is there any ETA on this 6 years old bug ?