Add maxlength HTML attribute to Input when using maxLength() #15770
ralphmorris
started this conversation in
Ideas
Replies: 1 comment
-
I completely agree. I came across this link while Google searching about this disappearance. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've just noticed when using the maxLength method on a form component the only validation is on the backend. It would be a nice feature for the user if it also output the maxlength HTML attribute so that the input stops allowing anything after the limit, or even better, a counter, as this would stop the user typing more in the first place rather than saving and getting an error message.
I am aware of the tips/packages available that do this with live(), helperText(), but think it would be better to have a simple built in frontend solution using native HTML and don't really want to reach for a plugin for something like this. Just my opinion :)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions