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

Initial FormGroup values are not populated When Mask Applied

mattsputnikdigital 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 behaviour

Initial value does not populate input when set in new FormGroup

ipAddress: new FormControl('111.111.111.111') should set the input

Expected behavior

Input should be set if initial value in FormControl is set

Minimal reproduction of the problem with instructions

https://angular-ivy-qmkrmw.stackblitz.io

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

So it works like a standard FormControl

Environment


Angular version: 12.2


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

Others:

Can you please share link of stackblitz with editor where we can see the code?

Your code uses 1.0.0-beta.4 version, please use the latest version.

@shhdharmen sorry about that, I was tracking another bug and use one of your example stackblitz to create a test never thinking to see what version it was using.

I have found the real issue and reported it here #34