Add maxlength HTML attribute to Input when using maxLength() #15770
ralphmorris
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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