This project is archived and is in readonly mode.

#425 ✓resolved
Jake

Validator: maxLength doesn't work.

Reported by Jake | October 26th, 2010 @ 01:39 PM | in 1.3.0.1

"Validator: maxLength" is evaluating to (10000) instead of the intended (false) for me in Firefox 3.6.11 running Core 1.3 and More 1.3.0.1rc1. I believe "Validator: minLength" has the same bug.

I was able to fix this in my environment by changing this line:

return (element.get('value').length <= props.maxLength || 10000);

to

return (element.get('value').length <= (props.maxLength || 10000));

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The MooTools Extensions

People watching this ticket

Pages