bl00mber / react-phone-input-2

:telephone_receiver: Highly customizable phone input component with auto formatting
https://bl00mber.github.io/react-phone-input-2.html
MIT License
956 stars 542 forks source link

It is not possible to enter Eastern Arabic numerals #459

Open samranfeli opened 3 years ago

samranfeli commented 3 years ago

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

kimixz commented 3 years ago

I have the same problem

bl00mber commented 2 years ago

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.

archonkulis commented 2 years ago

@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.

bl00mber commented 2 years ago

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

Siraj2025 commented 1 year ago

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