[Vuejs]-Vue.js computed property showing wrong data

0👍

Assigning a :key to the 2nd HTML-element solved the problem:

<div v-if="cancelChangePoints" :key="forceReRender">
    <md-field>
         <label>Latitude original</label>
         <md-input
          v-if="cancelChangePoints"
          v-model="centerPointLatOriginal"
          style="text-align: right"/>
        <span class="md-suffix" v-if="!useDDM">&deg;</span>
    </md-field>
</div>

Leave a comment