react-input-mask icon indicating copy to clipboard operation
react-input-mask copied to clipboard

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

Open crhistianramirez opened this issue 3 years ago • 4 comments

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.

crhistianramirez avatar Mar 11 '22 22:03 crhistianramirez

+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?

Gu7z avatar May 04 '22 15:05 Gu7z

+1 on this

Hi @sanniassin, can you help us?

dennissiq avatar Sep 06 '22 13:09 dennissiq

+1 on this

Hello @sanniassin, you have some news about it?

patrickjmeurer avatar Nov 16 '22 18:11 patrickjmeurer

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

crhistianramirez avatar Nov 17 '22 21:11 crhistianramirez