sanniassin / react-input-mask

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

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

Closed barkin94 closed 3 years ago

barkin94 commented 3 years ago

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

barkin94 commented 3 years ago

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