ngneat / input-mask

🎭 @ngneat/input-mask is an angular library that creates an input mask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Emit a phantom value on start

bogusweb opened this issue · comments

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

Form control with mask, emit phantom value (check console.log in stackblitz link)

Angular v13 with @ngneat/input-mask@5.2.0 - https://stackblitz.com/edit/angular-ivy-vpnlko
Angular v11 with @ngneat/input-mask@4.1.1 - https://stackblitz.com/edit/angular-ivy-aq5gkw

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment


Angular version: X.Y.Z


Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

Once inputmask is set on input element, we need to call updateValueAndValidity and hence it's happening. Not an issue.