Skip to content

Commit

Permalink
Fixing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorgalocabal committed Nov 7, 2017
1 parent 1550587 commit 8820914
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/intlpnIonic.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ angular.module('intlpnIonic', ['ionic', 'ionic_filter_bar'])
scope.isocode = scope.intlpnHelper.getFlagFromNumber( ngModelCtrl.$viewValue );
scope.countryIsoCode = scope.isocode;
if( scope.national ) {
scope.phone = intlTelInputUtils.formatNumberByType(ngModelCtrl.$viewValue,scope.isocode,intlTelInputUtils.numberFormat.NATIONAL);
scope.phone = intlTelInputUtils.formatNumber(ngModelCtrl.$viewValue, scope.isocode, intlTelInputUtils.numberFormat.NATIONAL);
} else {
scope.phone = ngModelCtrl.$viewValue;
scope.phone = intlTelInputUtils.formatNumber(ngModelCtrl.$viewValue, scope.isoCode, intlTelInputUtils.numberFormat.INTERNATIONAL);
}
};
//from view value (in ngModel directive) to model value (outside world)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "intl-pn-ionic",
"version": "0.2.2",
"version": "0.2.3",
"description": "Simple version of intl-phone number input for Ionic",
"main": "js/intlpnIonic.js",
"scripts": {
Expand Down

0 comments on commit 8820914

Please sign in to comment.