The Input component requires extra props to work as desired for phone validation.
Specifically maxlength, minlength, title, pattern need to be added as props to support and enhance the functionality of type="tel" input.
These new props are going to be used in https://github.com/code4romania/stam-acasa/pull/277
The
Input
component requires extra props to work as desired for phone validation. Specificallymaxlength
,minlength
,title
,pattern
need to be added as props to support and enhance the functionality oftype="tel"
input. These new props are going to be used in https://github.com/code4romania/stam-acasa/pull/277Codepen Example
https://codepen.io/dima000/pen/eYpdRmZ
Preview
The end result will look like this