Похожие чаты

Why having the same v-model?

1 ответов

3 просмотра

I don't :) <div v-for="(alt, altIndex) in order.alternative" :key="altIndex" > <v-text-field v-model.trim="alt.link" class="ml-2 mr-2" label="Ссылка на товар" outline type="text" required :error-messages="orderNameErrors" /> </div> I thought i'm using v-model for exact 'alt' object in order.alternative array, but when another object is added to order.alternative, one model triggers another, and both inputs have the same value.

Похожие вопросы

Карта сайта