Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha User
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
-
Sencha - Forum Administrator
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
-
Ext Support Team
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.