Skip to content
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

optional part of mask discarded when unmaskedValue contains it #41

Open
brayancastrop opened this issue Sep 7, 2017 · 1 comment
Open

Comments

@brayancastrop
Copy link

Hi,

For some reason having a variable which contains optional part of a mask it's discarded when loaded, for example:

Having this

{example: {number: '982748238992874822998724892932'}}

and

{{input-mask mask='(999) 999-9999[, (999) 999-9999][, (999) 999-9999][, (999) 999-9999]' unmaskedValue=example.number class='form-control'}}

it shows just the non optional part of the mask like if the mask were

mask='(999) 999-9999'

also noticed by using greedyMask=true it shows the missing parts plus the non fulfilled optional mask

@brandynbennett
Copy link
Collaborator

It looks like right now you need to pass in the masked version for it to appear. We need to get a better api for the components to determine whether it should expect an unmasked or masked value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants