Skip to content

Commit

Permalink
Changed line that sets countryCode. Now, when CC is invalid, it is se…
Browse files Browse the repository at this point in the history
…t to null and therefor not changed
  • Loading branch information
Reno McKenzie authored and Reno McKenzie committed Jan 12, 2018
1 parent 40ca591 commit 34b5517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/IntlTelInputApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ class IntlTelInputApp extends Component {
// invalid dial code, so empty
// Note: use getNumeric here because the number has not been
// formatted yet, so could contain bad chars
countryCode = '';
countryCode = null;
} else if (!number || number === '+') {
// empty, or just a plus, so default
countryCode = this.defaultCountry;
Expand Down

0 comments on commit 34b5517

Please sign in to comment.