v-mask
v-mask copied to clipboard
Is it possible to use multiple masks?
I was using Vue The Mask in a project I'm working on. But I was facing some really annoying problems with it since it has become outdated. One of the good features it had was to allow the use of multiple masks. Is this possible with v-mask?
Good question. I suggest you to use something like (some test over the input) ? 'mask 1' : 'mask 2'
Plus one here.
Good question. I suggest you to use something like
(some test over the input) ? 'mask 1' : 'mask 2'
This solution is ridiculous. I think the best solution is; It should be able to mask more than one into the array.
Any updates on this topic ?
I ended up using a computed to return a mask based on the user input. It's not the best solution after all, but it's how I managed to solve it.