Results 1 to 3 of 3

Thread: TextField does not allow typing when setting mask and value to empty string

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jul 2013
    Posts
    2
    Vote Rating
    0
      0  

    Default TextField does not allow typing when setting mask and value to empty string

    We set the input mask dynamically because on some Android devices (version 6) the mask does not work.

    When we do that, and set the value to an empty string the field does not allow to type, it behaves as it was disabled.

    Here is the fiddle that reproduces the problem

    https://fiddle.sencha.com/#view/editor&fiddle/2qdt


    Code:
    Ext.create({
        xtype: 'panel',
        renderTo: Ext.getBody(),
        margin: 20,
        items: [{
            xtype: 'textfield',
            label: 'Phone',
            name: 'phone',
            maxLength:14,
            enforceMaxLength:true,
            placeholder: '(xxx) xxx-xxxx',
            autoHideInputMask: false,
            listeners:{ 
            initialize:{
                fn: function() {
                    this.setInputMask('(999) 999-9999');
                    this.setValue('');
                }
            },
            focus:{
                fn: function( This, e, eOpts ) {
                    //this.setInputMask('(999) 999-9999');
                     //this.setValue('');
                }
            }
        }
        }]
    });

    Ivan Pedruzzi
    IVI Technologies

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,005
    Vote Rating
    -519
      0  

    Default

    Thank you so much for your post. I apologize for the delay. I have shared this with the support staff to look into at their earliest convenience. Your patience is greatly appreciated! We do suggest using the support portal when you need assistance with a capability of a Sencha product, you have identified a situation where a products behavior is inconsistent with the product documentation and might indicate a software bug, or when the communication between you and Sencha needs to be private.

    Thanks again,

    Michele




  3. #3
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    465
    Vote Rating
    -332
      0  

    Default

    Hello Ivan,

    This issue has been registered in our bug tracker for resolution, the reference number EXTJS-28201 will be attached here for you to receive updates.

    Regards,
    Kumar
    Sencha Support.

Tags for this Thread

Posting Permissions

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