On my Vue page, I have the following HTML code snippet:
<div v-for="profile in lab.profiles" v-if="edit || profile.active" class="lab-tests-row-div" @mouseover="">
<div class="clickBox" :class="['clickBox-' + lab.id + '-' + profile.id]" @click="openInfoPopup"></div>
<p class="lab-tests-row test-info-row" v-bind:class="{'active': profile.active}">
<span v-bind:class="{'opacity50':!profile.active}">{{profile.name}}</span>
<i v-if="edit" class="fa fa-minus pull-right removeTestIcon" aria-hidden="true" @click="toggleProfile(lab.id, profile.id)"></i>
<span class="pull-right" v-bind:class="{'opacity50':!profile.active}">{{profile.code}}</span>
</p>
</div>
I am facing an issue where I want to display the 'clickBox' element only when the user hovers over a specific row. However, if I use a v-if with a boolean and change it on mouseover, all rows show the clickBox since they are part of a v-for loop. How can I ensure that only the div in the particular row being hovered over is shown?