Skip to content

[V4] Input masking #3148

Answered by logaretm
kozmanbalint asked this question in Q&A
Feb 2, 2021 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Not sure about the problem, a code sample would've helped.

For maska it seems to work fine, except you don't set the directive on the components because that's stated there that it operates on input nodes. So you either need to use Field component with scoped slots rendering or use useField and mask the input manually using their vanillajs guide.

This is a small example for maska:

https://codesandbox.io/s/lively-violet-jqon1?file=/src/App.vue

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@kozmanbalint
Comment options

@logaretm
Comment options

@kozmanbalint
Comment options

@logaretm
Comment options

@kozmanbalint
Comment options

Answer selected by logaretm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants