[question][quasar] TypeScript error if no v-model is present in QInput Quasar Component, defineComponentBinds #4433
Unanswered
angelhdzmultimedia
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Thanks for submitting this. Forcing a model value prop on the binds caused type errors for other components. The So it seems like the Vue ecosystem requires |
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
-
Hi,
If the v-model is not present in the QInput, then I get a TypeScript error that that component requires the v-model. I was following this guide https://vee-validate.logaretm.com/v4/examples/ui-libraries/#quasar.
So I was about to submit the issue in Quasar's Discord, until the last minute I had an idea.
In the
defineComponentBinds
hook config argument, which is a callback that returns the config,I added
modelValue
, and solved the error!Works
Does NOT work:
So, either I'm missing something that I should learn about, or this is a missing information in the documentation.
Any tip will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions