Is there a built in way to stop a user from entering more than the maxLength in a Ext.form.TextArea?
The built-in validation shows the red outline when it goes over the set maxLength, but it doesn't stop the user from typing more.
I haven't tried much to fix this as it isn't a high priority issue for the users yet, but it would be nice if I didn't have to plug in a validation function to every TextArea in the app to prevent entering > maxLength characters. I tried the vtypes, and they don't work for this, though the email vtype was a great time saver for email validation. Hopefully I'm just doing something wrong.
I am having the same problem with the maxLength in IE. However, FF handles the maxLength just fine. I'm not sure if this is a browser implementation decision or ext issue. If you truely want to restrict the user from typing, you can always define a mask using maskRe.
We can use the enforceMaxLength config to restrict the maxlength to achieve this functionality easily.maxLength : 200,
enforceMaxLength : true,
Also this will avoid the paste (ctrl+v) problem also.