sanniassin / react-input-mask

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

Feature request: Ability to define a dynamic mask ahead of time #282

Open crhistianramirez opened 2 years ago

crhistianramirez commented 2 years ago

I'm building an ecommerce application that needs to be supported globally. This means that we work with various formats for zipcode amongst other things. In the United States a zip code can either be 5 digit or 9 digits, and I'd like my users to be able to do both. I found this solution which solves it but because I need to support so many countries it would be preferable for me to store a countries definition array that has the mask defined ahead of time, and allows me to simply use it dynamically.

Gu7z commented 2 years ago

+1 on this Same problem. There is a lot of countries to have a specific conditional for each of them.

@sanniassin, any plans to make mask work with an array?

dennissiq commented 2 years ago

+1 on this

Hi @sanniassin, can you help us?

patrickjmeurer commented 1 year ago

+1 on this

Hello @sanniassin, you have some news about it?

crhistianramirez commented 1 year ago

Given that the last commit to this repo was Jan 21st, 2020 I don't think we have much hope on @sanniassin to deliver on this. Someone else will need to roll up their sleeves

edit: this repo is dead