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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically placeholder value #1341

Open
titkovvladislav opened this issue Apr 1, 2024 · 0 comments
Open

Dynamically placeholder value #1341

titkovvladislav opened this issue Apr 1, 2024 · 0 comments

Comments

@titkovvladislav
Copy link

馃悶 bug report

Is this a regression?

Yes, the previous version in which this bug was not present was: 16.4.1

Description

The input stops working correctly when the placeholder value changes dynamically.

馃敩 Minimal Reproduction

In the created example, if you enter a number, everything works correctly - a mask is applied and a suffix is added. But if we change the placeholder, then everything breaks down - the number is not entered correctly and the suffix disappears..
https://stackblitz.com/edit/stackblitz-starters-kzxrzr?file=src%2Fmain.ts

Same thing here, only version "ngx-mask": "^16.4.1":
https://stackblitz.com/edit/stackblitz-starters-aip3vn?file=src%2Fmain.ts
Note that the suffix here also applies to the placeholder..

馃實 Your Environment

Angular Version:




Angular CLI: 17.3.2
Node: 18.20.0
Package Manager: npm 10.5.0
OS: win32 x64

Angular: 17.3.2
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, material-moment-adapter, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1703.2
@angular-devkit/build-angular   17.3.2
@angular-devkit/core            17.3.2
@angular-devkit/schematics      17.3.2
@schematics/angular             17.3.2
rxjs                            7.8.1
typescript                      5.4.3
zone.js                         0.14.4

Anything else relevant?

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

No branches or pull requests

2 participants