[Vuejs]-Vue – directive bind doesn't work on element refresh

2👍

You need to set an id for each element and use v-bind:key something like this:

<input type="text"
    v-bind:key="YOUR_ELEMENT.id"
    v-mask="getInputMask()"
    v-model="currentQuestion.value"
    @keyup="afterModifyInput"
>

I suppose this is your id

:name="currentQuestion.identifier"

Well, v-bind is used when you don’t know the exact content you’re going to render like a properties from request or JSON file.

👤Ladd.c

Leave a comment