Replies: 2 comments 2 replies
-
Here is my inner component (
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I just saw that there's an official VeeValidate integration example: https://vee-validate.logaretm.com/v4/examples/value-formatting/#currency-format-example |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I am quite confused how this component works, perhaps due to the fact that it's not really clear where the actual value LIVES. Why in the docs is
modelValue
passed in and as a prop and not used or bound anywhere? It is like everything is a black box of how this worksI notice that by setting
modelValue
prop it somehow is picking that up despite not actually using it on the component.How do I access the actual value that its binding to, in the same component without having to wrap it? I want vee + currency input to be in the same component.
That way currency-input holds the state, and when it changes i then send it to vee-validate (which doesont control the input, only the validation). I separate it into 2 states so it is clear the distinction. I think will update the currency input state if the vee validate changes
Beta Was this translation helpful? Give feedback.
All reactions