[Vuejs]-Vuetify 2->3 Migration: what to do when v-list-item-icon has a v-if conditional

1👍

<v-list-item
  class="mr"
  v-for="item in userItems"
  :key="item.title"
  link
  @click="clickUserMenuItem(item.routeName)"
  :icon="item.icon || null"
/>

you really do not need it with ‘item.icon || null’ < ‘item.icon’ would be enough..

see this answer:
VueJS conditionally add an attribute for an element

👤LyuMir

Leave a comment