react-phone-input-2 icon indicating copy to clipboard operation
react-phone-input-2 copied to clipboard

It is not possible to enter Eastern Arabic numerals

Open samranfeli opened this issue 3 years ago • 5 comments

its not possible to enter numbers when keyboard language is Arabic or Persian: ٠١٢٣٤٥٦٧٨٩

samranfeli avatar Sep 09 '21 12:09 samranfeli

I have the same problem

kimixz avatar Oct 06 '21 09:10 kimixz

I may look to support Eastern Arabic and some few other numeral systems. You can try to make PR yourself. For now you can only use function in your app that will convert Eastern Arabic numerals to Western Arabic and back.

bl00mber avatar Feb 02 '22 23:02 bl00mber

@bl00mber Hey! Any tips on how to achieve that? Inside onChange I can't catch the Arabic symbols (or any other letters) as it accepts only numbers. Much appreciated. The only thing that comes to my mind is to pass a custom input, but wouldn't it then disable all number validations, etc? Would be great if you could comment with what you think would be the best solution for this at the moment.

archonkulis avatar Jun 06 '22 11:06 archonkulis

@archonkulis you are right the validator is probably a blocker so you can not use these numerals right now.

bl00mber avatar Aug 07 '22 17:08 bl00mber

@bl00mber Is this issue still present or has it been resolved?

Siraj2025 avatar Aug 21 '23 13:08 Siraj2025