diff --git a/src/index.js b/src/index.js index 07988e0f..25528f1e 100644 --- a/src/index.js +++ b/src/index.js @@ -189,12 +189,12 @@ class PhoneInput extends React.Component { let countryGuess; if (props.disableInitialCountryGuess) { countryGuess = 0; - } else if (inputNumber.length > 1) { - // Country detect by phone - countryGuess = this.guessSelectedCountry(inputNumber.substring(0, 6), props.country, onlyCountries, hiddenAreaCodes) || 0; } else if (props.country) { // Default country countryGuess = onlyCountries.find(o => o.iso2 == props.country) || 0; + } else if (inputNumber.length > 1) { + // Country detect by phone + countryGuess = this.guessSelectedCountry(inputNumber.substring(0, 6), props.country, onlyCountries, hiddenAreaCodes) || 0; } else { // Empty params countryGuess = 0;