Skip to content

Commit 5a5f5dc

Browse files
Merge pull request #43 from juanjotorres90/develop
develop to main
2 parents ad5a0bb + 2b05c65 commit 5a5f5dc

File tree

6 files changed

+2533
-2244
lines changed

6 files changed

+2533
-2244
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ Thumbs.db
4141
.nx/cache
4242
.nx/workspace-data
4343
.angular
44+
.qodo

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [19.2.1] - 2025-02-13
9+
10+
### Fixed
11+
12+
- Fix cursor position when using 'includeDialCode' option. ([#41](https://github.com/juanjotorres90/ngx-material-intl-tel-input/issues/41)).
13+
814
## [19.2.0] - 2025-01-25
915

1016
### Added

libs/ngx-material-intl-tel-input-lib/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-material-intl-tel-input",
3-
"version": "19.2.0",
3+
"version": "19.2.1",
44
"license": "MIT",
55
"repository": {
66
"type": "git",
@@ -38,7 +38,7 @@
3838
"@angular/material": "^19.0.0",
3939
"angular-imask": "^7.6.1",
4040
"google-libphonenumber": "^3.2.40",
41-
"ngx-mat-select-search": "^7.0.10",
41+
"ngx-mat-select-search": "^8.0.0",
4242
"tslib": "^2.3.0"
4343
},
4444
"devDependencies": {

libs/ngx-material-intl-tel-input-lib/src/lib/ngx-material-intl-tel-input-lib/ngx-material-intl-tel-input-lib.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,9 @@ export class NgxMaterialIntlTelInputComponent
584584
): void {
585585
const nationalNumber = this.phoneNumberUtil.format(
586586
parsed,
587-
PhoneNumberFormat.NATIONAL
587+
this.includeDialCode()
588+
? PhoneNumberFormat.INTERNATIONAL
589+
: PhoneNumberFormat.NATIONAL
588590
);
589591
const newCursorPosition = this.adjustCursorPosition(
590592
cursorPosition as number,

0 commit comments

Comments
 (0)