Reputation: 51
I am using ValidationTextBox in Dojo which has the maxlength as 180, now when I quickly type all the character at once it hangs the entire UI.
E.g. keep the character "p" on your keyboard pressed contiguously on validation text box the entire browser hangs.
This happens in all the browsers.
Upvotes: 0
Views: 2595
Reputation: 4618
You can set the maxLength attribute directly in the widget creation
or
myValidationTextbox.set('maxLength', 4)
I agree with you that setting it via constraints as an alias makes sense if you have multiple different validation widgets.
So I think you have discovered a bug and the dojo people always encourage you to file a bug for each issue. You can do that here: https://bugs.dojotoolkit.org
Upvotes: 1