react-phone-input
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -1290,2 +1290,2 @@ // So each country array has the following information: | ||
allCountryCodes: allCountryCodes | ||
}; | ||
}; |
@@ -573,3 +573,3 @@ 'use strict'; | ||
} | ||
if (country.dialCode === selectedCountry.dialCode.length && country.priority < selectedCountry.priority) { | ||
if (country.dialCode.length === selectedCountry.dialCode.length && country.priority < selectedCountry.priority) { | ||
return country; | ||
@@ -600,3 +600,5 @@ } | ||
exports['default'] = ReactPhoneInput; | ||
_React2['default'].render(_React2['default'].createElement(ReactPhoneInput, { defaultCountry: 'us', preferredCountries: ['us', 'de'] }), document.getElementById('content')); | ||
module.exports = exports['default']; | ||
{ | ||
"name": "react-phone-input", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "A react component to format phone numbers", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -1290,2 +1290,2 @@ // So each country array has the following information: | ||
allCountryCodes: allCountryCodes | ||
}; | ||
}; |
@@ -501,5 +501,6 @@ // TODO - fix the onlyContries props. Currently expects that as an array of country object, but users should be able to send in array of country isos | ||
} | ||
if(country.dialCode === selectedCountry.dialCode.length && country.priority < selectedCountry.priority) { | ||
if(country.dialCode.length === selectedCountry.dialCode.length && country.priority < selectedCountry.priority) { | ||
return country; | ||
} | ||
} | ||
@@ -529,1 +530,4 @@ return selectedCountry; | ||
React.render( | ||
<ReactPhoneInput defaultCountry={'us'} preferredCountries={['us', 'de']}/>, | ||
document.getElementById('content')); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3581
167445
11