Update ContextMenuSub.vue

pull/4004/head
Tuğçe Küçükoğlu 2023-05-30 10:02:33 +03:00
parent 1a97ba848d
commit ef89aca010
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<transition name="p-contextmenusub" @enter="onEnter"> <transition name="p-contextmenusub" @enter="onEnter">
<ul v-if="root ? true : visible" ref="container" v-bind="ptm('menu')"> <ul v-if="root ? true : visible" ref="container" :tabindex="tabindex" v-bind="ptm('menu')">
<template v-for="(processedItem, index) of items" :key="getItemKey(processedItem)"> <template v-for="(processedItem, index) of items" :key="getItemKey(processedItem)">
<li <li
v-if="isItemVisible(processedItem) && !getItemProp(processedItem, 'separator')" v-if="isItemVisible(processedItem) && !getItemProp(processedItem, 'separator')"
@ -119,6 +119,10 @@ export default {
activeItemPath: { activeItemPath: {
type: Object, type: Object,
default: null default: null
},
tabindex: {
type: Number,
default: 0
} }
}, },
methods: { methods: {