Closed vNakamura closed 6 years ago
Note: I wasn't able to add a story with a mask because the snapshot test won't work. I've filled this issue https://github.com/sanniassin/react-input-mask/issues/147 to keep track about it.
Why not use HTML attributes type="tel"
and pattern
?
Maybe we could achieve the same results with native behavior + a polyfill for browsers that dont support it. And save us a new react component dependency.
type="tel"
only checks if the value entered is valid or not... We actually need to format the value as user types in.
Our first requirement is for US phone numbers
999-999-9999
, but the component should allow custom masks for other fields and for internationalization.