chakra-ui-vue-next
chakra-ui-vue-next copied to clipboard
feat: add `v-model` support for `chakra` factory components
Feat: add v-model support for chakra factory components
User would like to do this:
<template>
<chakra.input type="text" v-model="input" />
</template>
<script>
export default {
name: "App",
data() {
return {
input: "",
};
},
};
</script>
Is your feature request related to a problem? Please describe.
Cannot use two-way binding for components generated by chakra factory function
Reproduction
https://codesandbox.io/s/charka-input-issue-forked-9m5mw?file=/src/App.vue:0-350
Describe alternatives you've considered
Additional context
Hi @codebender828 ,
I opened the reproduction but if i bump the @chakra-ui/vue-next version to 1.0.0-alpha.15 the problem seems fixed.
I tried it in the monorepo and i don't have any problem using the v-model with chakra.input factory function.
If you can confirm, we can close the issue 😊
tahnks