JsDaddy / ngx-mask

Angular Plugin to make masks on form fields and html elements.
https://jsdaddy.github.io/ngx-mask
MIT License
1.15k stars 298 forks source link

Form control valueChanges is called on init #1364

Closed WebTechnolog closed 2 months ago

WebTechnolog commented 4 months ago

🐞 bug report

Is this a regression?

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

Description

When there's a form control with a mask, the valueChanges fires on the form (form control) init.

🌍 Your Environment

Angular Version:


@angular-devkit/architect       0.1703.7
@angular-devkit/build-angular   17.3.7
@angular-devkit/core            17.3.7
@angular-devkit/schematics      17.3.7
@angular/cli                    17.3.7
@schematics/angular             17.3.7
ng-packagr                      17.3.0
rxjs                            7.5.7
typescript                      5.2.2
zone.js                         0.14.2

Anything else relevant?

The first version with this issue is 17.0.6.

joelryan2k commented 4 months ago

Could this be related? https://github.com/JsDaddy/ngx-mask/issues/1357

medi6 commented 4 months ago

Hi, I confirm this problem.

andriikamaldinov1 commented 2 months ago

@WebTechnolog
Thanks for using Ngx-mask. Please update to latest version. It example all work as expected - https://stackblitz.com/edit/stackblitz-starters-2ws8jj?file=package.json

WebTechnolog commented 2 months ago

Thanks a lot for the fix, and for the library of course.