Skip to content

Commit

Permalink
Fix: invoke onPhoneNumberChange callback with formatted value on init
Browse files Browse the repository at this point in the history
…instead of unformatted value from previous state
  • Loading branch information
coox committed Mar 27, 2019
1 parent 3f9b3c7 commit 71d2be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/IntlTelInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ class IntlTelInput extends Component {
},
() => {
if (doNotify) {
this.notifyPhoneNumberChange(this.state.value);
this.notifyPhoneNumberChange(number);
}

this.unbindDocumentClick();
Expand Down

0 comments on commit 71d2be1

Please sign in to comment.