Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

169
Views
React-Phone-Input-2 empty selector if pre-existing value

Is there a way to render an icon or empty selector if a pre-existing value exists in React-Phone-Input-2 https://www.npmjs.com/package/react-phone-input-2?

<PhoneNumberInputField
   countryCodeEditable={ false }
   country={ defaultCountry() }
   value={ value }
   specialLabel={ translate('profile:profile.phone') }
   onChange={ (phoneNumber, data) => handlePhoneChange(phoneNumber, data) }
/>

Right now the first country flag si render in the selector: enter image description here

And I want something like this if the value exists and no country code is selected: enter image description here

Thank you!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!