omeralpi / shadcn-phone-input

Customizable phone input component with proper validation for any country. Built on top of shadcn.
https://shadcn-phone-input.vercel.app
MIT License
346 stars 25 forks source link

Safari auto-complete broken #27

Open gileanu opened 2 months ago

gileanu commented 2 months ago

Hey, this is my first Issue submission and I don't have that much experience with frameworks and stuff, also from what I checked I can't seem to find someone else having this same issue,

Using Safari on Mac or iPhone when filling the phone input it seems to not auto-complete correctly. Not sure if it's on all phone formats but I know for sure Romanian does not work:

RO format looks like: +40 700 000 000, but it auto-completes to: +7 00000000

Here is what's happening:

Screenshot 2024-04-24 at 4 38 07 PM Screenshot 2024-04-24 at 4 38 11 PM

Here is what it should auto-complete to:

Screenshot 2024-04-24 at 4 38 37 PM

At first I fought maybe I implemented the component wrong but I have the same issue on shadcn-phone-input.vercel.app

gileanu commented 2 months ago

Actually the issue seems to be with react-phone-input, but If anyone knows a fix for it please let me know