-
GXT 2.2.1: TextField setMaxLength doesn't work with %
GXT 2.2.1: TextField setMaxLength doesn't work with %
To limit the length of a text field we use the Method setMaxLength(int maxLength).
It works fine with normal letters or numbers.
But if you enter a % to the last position, the limit of the TextField lifted and you can enter more characters.
-
Why do you need a max length in %?
-
Maybe I expressed myself wrong.
There is a text field with a maximum length of 10 characters.
After entering 'abc1234abc' no another character can be entered. It is correct.
After entering 'abc1234ab%' unlimited additional characters can be entered, which should not be.
This makes it possible in a text field with a maximum length of 10 characters enter the following text:
'abc1234ab%%dojieolk' -> This is not correct.
-
Well, this sounds like a bug. Did you check this behavior with 2.2.5?
-
It is almost the same.
After enter the maximum length of the Field you can continue with the character %.
-
Thanks for reporting this. I will move this thread to the correct bug forum so it can be looked at.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us