A
A
Anton2019-07-12 15:14:41
Vue.js
Anton, 2019-07-12 15:14:41

Vue is a form builder. Defeat overwriting value in inputs?

Good afternoon.
Probably, the answer is before our eyes, but we have already blurred.
JSFiddle
form example This form will be used when changing the object, i.e. JSON with data is pulled from the database and a form table is formed.
Everything works, everything is fine, except that:
We loaded the form with data, started changing some field\fields, but when adding a new feature or a new configuration, everything that we changed before is overwritten by what we actually received when loading the form, i.e. source data from the database.
How to make it so that when changing any field and when processing the add functions, the changed value of the input is not overwritten with the original one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy S, 2019-07-12
@Eridani

at the input, you also need to add @change (or @input) handling.
have you tried v-model?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question