Here is the code snippet:
<li v-for="(dog, index) in dogs" :key="index" class=" hover:bg-gray-50" :class="{ 'bg-red-50': index === focus }" @keyup.enter="goToSlug(dog)"> .... </li>
The focus is handled correctly, but I'm experiencing an issue with running the method goToSlug() when the enter key is pressed. The method does not seem to fire as expected.