material-ui-phone-number
material-ui-phone-number copied to clipboard
How to set maxlength and minLength of characters
Would be nice to get an error when certain characters are not met.
@alexplumb +1 here, I tried to set the required prop, but when we use the dialcode in the input, it will always accept it because there is some data in the field.
Do you have a work around for that? As Brian point of it could be nice to example set a min length etc. :)
Thanks for looking into it!
you can add it like that:
inputProps={{ minlength: 5, }}