4 ms·
I hope no one is relying on it! But in the context of a regular user, maxlength measuring all chars is failsafe (user is allowed to submit a long string that sh
by graypegg 4y ago
I hope no one is relying on it! But in the context of a regular user, maxlength measuring all chars is failsafe (user is allowed to submit a long string that should be caught by validation elsewhere) vs measuring visible chars is faildangerous (user can’t submit a valid string because the front end validation stops them)
Which is weird
- Akronymus 4y agoAt work we almost exclusively use backend validation and return a json object with the fields that failed validation + what rules were failed.