Results 1 to 4 of 4

Thread: Can paste text into numberfield

    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.
  1. #1
    Sencha User
    Join Date
    Apr 2013
    Location
    Prague
    Posts
    1
    Vote Rating
    0
      0  

    Default Can paste text into numberfield

    REQUIRED INFORMATION

    Ext version tested:

    • Ext 4.2

    Browser versions tested against:

    • Chrome 27.0.1453.110
    • FF20

    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:
    • Win7


    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

  2. #2
    Sencha - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,023
    Vote Rating
    1364
      0  

    Default

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

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2015
    Posts
    22
    Vote Rating
    3
      0  

    Default

    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.

  4. #4
    Sencha Premium Member
    Join Date
    Oct 2015
    Posts
    22
    Vote Rating
    3
      0  

    Default

    stripCharsRe does what we need

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •