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

Multiple masks #13

Closed
mariuszniemiec opened this issue Mar 21, 2019 · 3 comments
Closed

Multiple masks #13

mariuszniemiec opened this issue Mar 21, 2019 · 3 comments

Comments

@mariuszniemiec
Copy link

Hi
I have trouble to make it work with multi mask.
My input looks like:
<input type="tel" name="phone" v-model.trim="form.phone" v-mask="phoneMask">
And later on in data I have:
phoneMask: { mask() { return ['999-999-999[9]', '9{11,}']; }}

I also tried more direct:
phoneMask: { mask: ['999-999-999[999]', '9{11,}'] }

It looks like it always filters with first mask only. I had an old code and more manual binding - than it was working with both masks, but there were other formatting issues (note important in this case).
Am I doing something wrong?

@mariuszniemiec
Copy link
Author

Maybe it's related to #12 ?

@zyxd
Copy link

zyxd commented Apr 10, 2019

I forked this project and there's no problem with it (if i understand the issue correctly).

https://jsfiddle.net/2mrvxp98

@mariuszniemiec
Copy link
Author

Sorry for very late response @zyxd
I agree this works in general, but as far as I remmember I had more of a business logic issue more than technical. I was able to adjust it in some other way.
Thanks for response I'm closing this issue.

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

No branches or pull requests

2 participants