Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To initialize a variable with a value, the mask is not being applied correctly #1299

Closed
ViniciusRochaDcide opened this issue Jan 5, 2024 · 2 comments
Labels

Comments

@ViniciusRochaDcide
Copy link

ViniciusRochaDcide commented Jan 5, 2024

To initialize a variable with a value, the mask is not being applied correctly

image

https://stackblitz.com/edit/angular-nhtwrw?file=src%2Fmain.ts

"dependencies": {
"@angular/animations": "^17.0.1",
"@angular/common": "^17.0.1",
"@angular/compiler": "^17.0.1",
"@angular/core": "^17.0.1",
"@angular/forms": "^17.0.1",
"@angular/platform-browser": "^17.0.1",
"@angular/router": "^17.0.1",
"ngx-mask": "^17.0.4",
"rxjs": "^7.8.1",
"tslib": "^2.6.2",
"zone.js": "^0.14.2"
}

@shyambhiogade
Copy link

you can try using following,
[(ngModel)]="startTime"

andriikamaldinov1 added a commit that referenced this issue Mar 25, 2024
andriikamaldinov1 added a commit that referenced this issue Mar 25, 2024
andriikamaldinov1 added a commit that referenced this issue Mar 25, 2024
andriikamaldinov1 added a commit that referenced this issue Mar 25, 2024
andriikamaldinov1 added a commit that referenced this issue Mar 25, 2024
#1328)

* feat(ref: #1295, #1292, #1314, #1310, #1304, #1308, #1299): fix issues

* feat(ref: #1295, #1292, #1314, #1310, #1304, #1308, #1299): remove unusable code

* feat(ref: #1295, #1292, #1314, #1310, #1304, #1308, #1299): remove unusable code

* feat(ref: #1295, #1292, #1314, #1310, #1304, #1308, #1299): remove unusable code

* feat(ref: #1295, #1292, #1314, #1310, #1304, #1308, #1299): remove unusable code
@andriikamaldinov1
Copy link
Collaborator

@ViniciusRochaDcide Thanks for using Ngx-mask. Please update to lates version.
It example all work as expected - https://stackblitz.com/edit/stackblitz-starters-slqrk6?file=src%2Fmain.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants