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
Angular Number Mask Issue #125
Comments
thanks! i'll check |
Thanks @uNmAnNeR. Do you know how I can install angular-imask@3.4.0 and have it install imask@3.4.0 as its dependency? I'm running into a scenario where |
Before v4.0.0 plugins have latest imask dependency I investigated that if mask options is generated dynamicaly then Angular updates mask options on input but before imask handles input. And on update options new input value gets overrided by old one so input is not processed by imask. class MyComponent extends Component {
maskOptions = {mask: Number};
onMaxChanged (max) {
this.maskOptions.max = max;
}
} But i still believe i can fix it soon. |
@uNmAnNeR thanks for clarification on the versioning issue. If you think you can fix the underlying issue I will wait as I have this logic (where I |
Hey @uNmAnNeR - just wondering if there is anything I can help with on this or anything further you would like me to investigate for you? Thanks. |
@ryanbuening Sorry about delay. Reeealy have no time. |
@uNmAnNeR - I ran a build from #128 and it does appear to fix this issue. However, I'm not sure if it broke #74 or if I'm doing something wrong setting up the test.
|
@ryanbuening Thank you! |
If you think that is fixed then yes. Thanks! |
@ryanbuening done! check it 👍 |
@uNmAnNeR I updated to |
On a previous version of angular-imask (specifically angular-imask@1.0.2 with imask@3.1.1 on Angular 5.2.5 - sample project here I was able to use the following mask:
<input [imask]="this.maskService.numericWithThousandsSeparator(999999)" [(ngModel)]="thousandsMask" name="thousandsMask"/>
The mask would allow me to type in any number from 0 to 999,999.
When I try to use this same number mask above with angular-imask@4.1.1 with imask@4.1.1 on Angular 7.0.2 (sample project here). The mask won't allow me to type anything and I don't get any messages in the console.
Any ideas of why this is happening or what I'm doing wrong?
Additional Info: I've verified the mask also works with angular-imask@3.4.0 with imask@3.4.0 on Angular 7.0.4. I then did an
npm uninstall angular-imask
and ran anpm install angular-imask
which installed version 4.1.1 of both angular-imask and imask. This reproduced the issue of the mask not allowing me to enter anything into the input. So my guess is something between versions 3.4.0 and 4.1.1 was introduced that caused this.The text was updated successfully, but these errors were encountered: