Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
What is key equal to? It's not, by any chance, that you use v-for ... of instead of v-for ... in?
key == index
<div class="panel-item" v-for="(value, key) in activeElement" :key="key">
<input type="text" v-model="activeElement[key]">
</div>
The object is not bound via v-model. It's better to use an array for this. But if you really want an object, then:
https://jsfiddle.net/gvmo58Lb/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question