Skip to content

Commit

Permalink
Update ngx-mat-intl-tel-input.component.ts
Browse files Browse the repository at this point in the history
Rest value on formGroup.reset()
  • Loading branch information
rbalet authored Jul 13, 2023
1 parent dfbf3e3 commit 2074839
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ export class NgxMatIntlTelInputComponent
} else {
this.phoneNumber = value;
}
} else if (this.phoneNumber !== '') {
// On formGroup.reset()
this.reset()

Check failure on line 356 in projects/ngx-mat-intl-tel-input/src/lib/ngx-mat-intl-tel-input.component.ts

View workflow job for this annotation

GitHub Actions / build (14.x)

Missing semicolon

Check failure on line 356 in projects/ngx-mat-intl-tel-input/src/lib/ngx-mat-intl-tel-input.component.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Missing semicolon
}

// Value is set from outside using setValue()
Expand Down

0 comments on commit 2074839

Please sign in to comment.