JsDaddy / ngx-mask

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

Mask is emitting empty string on onModelChange without user interaction #1197

Closed Forsaiken closed 1 year ago

Forsaiken commented 1 year ago

🐞 bug report

Is this a regression?

Yes, when I downgrade my version to 15.1.5 the error stopped

Description

Basically the input is emitting a value change in the onModelChange without the user do anything to the input when the changeDetection is onPush he is emitting the value of the ngModel, but when there is no changeDetection he is emitting a empty string ('').

πŸ”¬ Minimal Reproduction

I'm trying to reproduce the error, but no success :(

πŸ”₯ Exception or Error



🌍 Your Environment

Angular Version: 16.1.1


Angular CLI: 16.1.4
Node: 18.14.2
Package Manager: npm 9.6.0
OS: win32 x64

Anything else relevant?

andriikamaldinov1 commented 1 year ago

@Forsaiken Could you provide stackblitz or another environment ?

andriikamaldinov1 commented 1 year ago

@Forsaiken thanks for using ngx-mask. Sorry, but we don't have enough data to restore the problem, if you can reproduce this problem, please open a new ishue.