I have a tr inside which I have a div with a glyphicon-pencil.
On tr mouseover, I am showing the div. On tr mouseout, I am hiding the div.
All the above is working well.
However, when mouse is on the div or glyphicon, the tr keeps registering mouseover and mouseouts, and hence the glyphicon keeps flickering.
How to I prevent inner objects from causing mouseouts on the outer object.
This is the code that I have tried (includes Vue.js):
<tr v-cloak v-for='res in store.reservations' @mouseover='setShowTools(res)' @mouseout='unsetShowTools(res)' >
<td>{{res.entryDate | longToDate | dateOnly}}</td>
<td>{{res.fromDate | parseDateOnly | dateOnly }}</td>
<td>{{res.toDate | parseDateOnly | dateOnly }}</td>
<td>{{res.guestName}}</td>
<td>{{res.guestContact}}</td>
<td>{{res.numRooms}}</td>
<td><div @mousemove.stop @mouseover.stop v-if='res.showTools'><span class="glyphicon glyphicon-pencil"></span></div></td>
</tr>