Skip to content

Commit

Permalink
Merge pull request #283 from coox/master
Browse files Browse the repository at this point in the history
Fix: invoke onPhoneNumberChange callback with formatted value on init instead of unformatted value from previous state
  • Loading branch information
patw0929 committed Oct 9, 2019
2 parents 236dca8 + 71d2be1 commit 34357e2
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 34357e2

Please sign in to comment.