-
-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating the mask in Angular breaks the form unmask="typed" integration #500
Comments
actually imask works, but you have to pass |
Thanks. I'll do that! Should Angular rebinding work in the same way as well? Right now, this does not work:
|
@dstj same for cfg: |
@uNmAnNeR Thanks for letting me know. I'm confused as to why that initial Thanks again. |
yeah, really confusing. I am thinking to get it work with masked instance directly. |
How can i use NullableMaskedNumberBlock without creating an object manually for each input? |
Hi,
I'm updating the
[imask]
from a radio button to switch the nested mask from "percentage" to "dollar". I'm usingunmask="typed"
with a twist to support nullable nested Number as in #432 with an Angular Form.It's originally bound to "Fixed" and works no problem (i.e. input shows "$ 123" and the form value is 123 as expected) .
However, after updating the
[imask]
, the value in the Angular form is no longer unmasked (i.e. "$ 123" is the form value instead of 123)My input is created like so:
I tried updating the mask using both:
imask.maskRef.updateOptions(...)
(from toggle lazy:true/false on focus/blur using Angular plugin #380)but same problem with both methods.
See repro on Stackblitz:
Possibly related to #359, I'm not sure.
Using imask v6.0.7 with both Angular 9 and 11
The text was updated successfully, but these errors were encountered: