diff --git a/packages/primevue/src/contextmenu/ContextMenuSub.vue b/packages/primevue/src/contextmenu/ContextMenuSub.vue index 6751ccdab..8fce15191 100755 --- a/packages/primevue/src/contextmenu/ContextMenuSub.vue +++ b/packages/primevue/src/contextmenu/ContextMenuSub.vue @@ -144,7 +144,7 @@ export default { getPTOptions(key, processedItem, index) { return this.ptm(key, { context: { - item: processedItem, + item: processedItem.item, active: this.isItemActive(processedItem), focused: this.isItemFocused(processedItem), disabled: this.isItemDisabled(processedItem), diff --git a/packages/primevue/src/megamenu/MegaMenuSub.vue b/packages/primevue/src/megamenu/MegaMenuSub.vue index 5780efe09..65c7d26a0 100644 --- a/packages/primevue/src/megamenu/MegaMenuSub.vue +++ b/packages/primevue/src/megamenu/MegaMenuSub.vue @@ -150,7 +150,7 @@ export default { getPTOptions(processedItem, index, key) { return this.ptm(key, { context: { - item: processedItem, + item: processedItem.item, index, active: this.isItemActive(processedItem), focused: this.isItemFocused(processedItem), diff --git a/packages/primevue/src/menubar/MenubarSub.vue b/packages/primevue/src/menubar/MenubarSub.vue index b6183c8a8..28da6afe2 100755 --- a/packages/primevue/src/menubar/MenubarSub.vue +++ b/packages/primevue/src/menubar/MenubarSub.vue @@ -143,7 +143,7 @@ export default { getPTOptions(processedItem, index, key) { return this.ptm(key, { context: { - item: processedItem, + item: processedItem.item, index, active: this.isItemActive(processedItem), focused: this.isItemFocused(processedItem), diff --git a/packages/primevue/src/panelmenu/PanelMenuSub.vue b/packages/primevue/src/panelmenu/PanelMenuSub.vue index f4aa099d7..5a504019c 100755 --- a/packages/primevue/src/panelmenu/PanelMenuSub.vue +++ b/packages/primevue/src/panelmenu/PanelMenuSub.vue @@ -130,7 +130,7 @@ export default { getPTOptions(key, processedItem, index) { return this.ptm(key, { context: { - item: processedItem, + item: processedItem.item, index, active: this.isItemActive(processedItem), focused: this.isItemFocused(processedItem), diff --git a/packages/primevue/src/tieredmenu/TieredMenuSub.vue b/packages/primevue/src/tieredmenu/TieredMenuSub.vue index 97ece8cba..5ca37aea3 100755 --- a/packages/primevue/src/tieredmenu/TieredMenuSub.vue +++ b/packages/primevue/src/tieredmenu/TieredMenuSub.vue @@ -140,7 +140,7 @@ export default { getPTOptions(processedItem, index, key) { return this.ptm(key, { context: { - item: processedItem, + item: processedItem.item, index, active: this.isItemActive(processedItem), focused: this.isItemFocused(processedItem),