Skip to content

Commit

Permalink
Merge pull request #51 from mpalourdio/isValidNumber
Browse files Browse the repository at this point in the history
chore: Go back to isValidNumber vs isValidNumberPrecise. Fixes #50
  • Loading branch information
mpalourdio committed Mar 18, 2024
2 parents e28c75e + 5fec134 commit 25ad463
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
@@ -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
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "intl-tel-input-ng",
"version": "0.11.0",
"version": "0.11.1",
"scripts": {
"ng": "ng",
"build": "ng build",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/intl-tel-input.component.ts
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 25ad463

Please sign in to comment.