-
Notifications
You must be signed in to change notification settings - Fork 829
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
[angular1] createNumberMask + conformToMask #492
Comments
The mask provided to const numberMask = createNumberMask({
prefix: '',
suffix: '',
thousandsSeparatorSymbol: ' ',
decimalSymbol: ',',
decimalLimit: 4,
allowDecimal: true,
integerLimit: 15
});
var mask = numberMask('123321'), // <- need to run the function, passing the rawValue
var conformedPhoneNumber = conformToMask(
'123321',
mask,
{guide: false}
); Hope that helps |
@lozjackson, if i use decimal as "123.123", numberMask function return array with '[]', i remove this and everything work good. Thx! |
@lozjackson and @bmsdave I have the same issue using Vanilla Text Mask. Using the example above, to the number 123321.12 it returns: It happens only with the |
I was getting this as well ( |
There is a StackOverflow question about using decimals with conformToMask().
This throws |
In the above example, @lozjackson any ideas? |
If I remove the As a workaround for now, this seems to resolve the issue for me:
|
Hi, when i use:
I get error
file angular1TextMask.js is uglify, and i don't get any debug info.
How to debug this package [angular1-text-mask]?
The text was updated successfully, but these errors were encountered: