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

Input is empty when provide FormControl value

monkeyhouse 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

A form control does not show its value when an input mask is applied

Expected behavior

The form control should continue to display its value

Minimal reproduction of the problem with instructions

https://stackblitz.com/edit/angular-ivy-mjxupg?file=src/app/app.component.ts
Load the stackblitz.
Notice that the input element does not show any value

input is empty

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

Environment


Angular version: X.Y.Z


Browser:
- [ x] 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:

This is a fork of the Stackblitz demo. It also depends on angular 11.   I'm new to angular so I may be doing something wrong.

This appears to be a Stackblitz issue only, it doesn't happen when I use the sample in the codebase