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
949 stars 536 forks source link

Unable to hide country selector #361

Open navidfalla opened 3 years ago

navidfalla commented 3 years ago

I am working on a project that is active in only one country, and using this component to for auto formatting the phone number input, I am able to have the input select only that one country and disable the country dropdown, but it stays to the left of the input and I can't hide it. Is there any way to do this? if not, would this not be a useful feature?

AlexanderSovpel commented 2 years ago

You can hide country dropdown with a bit of CSS: .react-tel-input .flag-dropdown { display: none; }