meredith
22
0
Vue

Trying to have a same dropdowns menu each time when cloning the form

Posted 9 months ago by meredith

My form is able to be cloned each time when I push a new form instance to the array. But each time when I select some value on the parent form, the selected value in child form also updated. I have read non parent-children communication on Vuejs website but still confused. Another important thing I noticed is I have to declare the options array outside of the form data scope. I used vue-multiselect library.

Here is my jsfiddle: https://jsfiddle.net/meredithlou/kmwafvpj/

Thank you for any possible answers in advance.

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.