Closed thodelcros closed 1 year ago
The value
prop is removed in the v4 in favour of the Vue 3 modelValue
prop used for v-model
bindings. The docs for vue select right now are not great, which was likely the source of your issue. Swap the prop and you're good to go.
Vue Version:3.0.0-rc.10
^4.0.0-beta.5
Describe the bug I am trying to connect my
vue-select
component toFormKit
(documentation).I can't manage to pass an initial value to my
vue-select
component, despite using thevalue
prop, and despite theBaseSelect
component receiving value fromFormKit
bycontext.node.value
object.Reproduction Link https://stackblitz.com/edit/nuxt-starter-ref6ut?file=BaseSelect.vue
Steps To Reproduce As you can see, in the
BaseSelect.vue
file, thecontext.node.value
variable, binded to the:value
prop, does not hydrate theVSelect
component with initial value.Expected behavior
VSelect
component should render"bar"
in the input, as it is while you select manually an option. ("bar"
is being set as initial value inFormKit
, inapp.vue
)