L
L
lucky-olga772019-07-17 23:52:11
JavaScript
lucky-olga77, 2019-07-17 23:52:11

Vuejs How to exclude object in option when changing v-select?

Demo can be seen here :
https://codesandbox.io/s/vue-template-jqb9n
there is array = [{text: "EN", avatar: "EN"}, {text: "RU", atarar: "RU "];
when selecting the EN value in the select, {text: "RU", avatar: "RU"} should be passed to options and vice versa
, in my implementation, when choosing in the select, the value disappears

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-07-18
@dimsog

https://ru.vuejs.org/v2/guide/list.html
Look for Display filtered/sorted results
+ v-model of another select see

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question