Skip to content

Commit

Permalink
feat: update phone on parent change
Browse files Browse the repository at this point in the history
  • Loading branch information
rbalet committed Oct 10, 2024
1 parent 8b9b062 commit 252497f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-mat-input-tel",
"version": "18.3.1",
"version": "18.4.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand All @@ -25,7 +25,7 @@
"@angular/platform-browser-dynamic": "^18.2.5",
"@angular/router": "^18.2.5",
"core-js": "^3.38.1",
"libphonenumber-js": "^1.11.9",
"libphonenumber-js": "^1.11.11",
"rxjs": "~7.8.1",
"tslib": "^2.7.0",
"zone.js": "~0.14.10"
Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-mat-input-tel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-mat-input-tel",
"version": "18.3.1",
"version": "18.4.0",
"author": {
"name": "Raphaël Balet",
"email": "[email protected]"
Expand All @@ -14,7 +14,7 @@
"@angular/forms": ">=15.x",
"@angular/platform-browser": ">=15.x",
"@angular/platform-browser-dynamic": ">=15.x",
"libphonenumber-js": "^1.11.9"
"libphonenumber-js": "^1.11.11"
},
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class NgxMatInputTelComponent
) {
super(_defaultErrorStateMatcher, _parentForm, _parentFormGroup, _ngControl)

_focusMonitor.monitor(_elementRef, true).subscribe((origin) => {
_focusMonitor.monitor(_elementRef, true).subscribe((origin: any) => {
if (this.focused && !origin) {
this.onTouched()
}
Expand Down Expand Up @@ -404,6 +404,7 @@ export class NgxMatInputTelComponent
// }

// Value is set from outside using setValue()
this.onPhoneNumberChange()
this._changeDetectorRef.markForCheck()
}

Expand Down

0 comments on commit 252497f

Please sign in to comment.