[Vuejs]-Vue: Select dropdown is clearing other inputs when changing value

0👍

I had the same problem, and for me the problem was that I saved the value of the text input in a prop, but it should be saved in the data method.

So the element looks like:

<input v-model="value"/>

End then in the script part:

data() {
    return {
        value: ''
    }
}

Leave a comment