How to simulate 'v-model' using render function while rendering Vue-Select? (Vue 2) #1613
Answered
by
sagalbot
kpyszkowski
asked this question in
Help Wanted
-
How can I achieve v-model effect using render functions? I pass value and options and it works fine, but select is not updating when I select option. I guess i have to mix somehow value and input event (what v-model does under the hood) but I can't get this done. Still the same result with not updated select - it keeps displaying the value passed initially. |
Beta Was this translation helpful? Give feedback.
Answered by
sagalbot
Mar 21, 2022
Replies: 1 comment
-
👆 that's the key to getting things to work. Pass the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sagalbot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👆 that's the key to getting things to work. Pass the
value
prop, and bind theinput
event. Here's a complete example: https://codepen.io/sagalbot/pen/RwxGRgM