sanniassin / react-input-mask

Input masking component for React. Made with attention to UX.
MIT License
2.24k stars 255 forks source link

Can I use the library's masking functionality on texts outside input? Like div for example. #238

Closed barkin94 closed 4 years ago

barkin94 commented 4 years ago

As the question says. I really need that functionality. Is it possible?

barkin94 commented 4 years ago

Nevermind. Achieved it by adding readonly attribute to input and border: none and outline: none to its style.