mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
Fixed #1029 - Menubar, ContextMenu, TieredMenu warning
This commit is contained in:
parent
4bcdf2720f
commit
cc5cb1a8b1
11 changed files with 17 additions and 17 deletions
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<ul class="p-submenu-list" role="tree">
|
||||
<template v-for="(item, i) of model" :key="item.label + i">
|
||||
<template v-for="(item, i) of model" :key="item.label + i.toString()">
|
||||
<li role="none" :class="getItemClass(item)" :style="item.style" v-if="visible(item) && !item.separator">
|
||||
<router-link v-if="item.to && !item.disabled" :to="item.to" custom v-slot="{navigate, href}">
|
||||
<a :href="href" :class="getLinkClass(item)" @click="onItemClick($event, item, navigate)" role="treeitem" :aria-expanded="isActive(item)">
|
||||
|
@ -20,7 +20,7 @@
|
|||
</div>
|
||||
</transition>
|
||||
</li>
|
||||
<li :class="['p-menu-separator', item.class]" :style="item.style" v-if="visible(item) && item.separator" :key="'separator' + i"></li>
|
||||
<li :class="['p-menu-separator', item.class]" :style="item.style" v-if="visible(item) && item.separator" :key="'separator' + i.toString()"></li>
|
||||
</template>
|
||||
</ul>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue