Skip to content

Commit

Permalink
chore: Go back to isValidNumber vs isValidNumberPrecise. Fixes #50
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalourdio committed Mar 18, 2024
1 parent e28c75e commit 37a210e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Changelog

## v0.11.1

- Revert: Use `isValidNumber` vs `isValidNumberPrecise`. See this [issue](https://github.com/mpalourdio/intl-tel-input-ng/issues/50).

## v0.11.0

- `intl-tel-input 19` support, thanks to [tlebreton](https://github.com/tlebreton).
- BC: The `onlyLocalized` feature has been removed as it's not needed anymore.
- BC break: The `onlyLocalized` feature has been removed as it's not needed anymore.

## v0.10.0

Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/intl-tel-input.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class IntlTelInputComponent implements AfterViewInit {

i18nizePhoneNumber(): void {
this.E164PhoneNumber = null;
if (this._intlTelInput.isValidNumberPrecise()) {
if (this._intlTelInput.isValidNumber()) {
this.E164PhoneNumber = this._intlTelInput.getNumber();
}
this.E164PhoneNumberChange.emit(this.E164PhoneNumber);
Expand Down

0 comments on commit 37a210e

Please sign in to comment.