lundi 24 avril 2017

Updating options on dynamic selector with Vuejs2

I have a problem updating the options array in a select tag in a VueJS component.

I have several rows and on select on each row. Each select will use the same options array. When one option is selected, that option should disappear from the others select.

I have try several ways to do that, but i'm not able to update the other options array (Using the Vue.set(...) function and all the caveats available).

The question in similar to this one but: - selector's array has to be dynamic - Options are the same for each selector

That's why the solution on that question doesn't work for me.

Aucun commentaire:

Enregistrer un commentaire