diff --git a/packages/primevue/src/contextmenu/ContextMenuSub.vue b/packages/primevue/src/contextmenu/ContextMenuSub.vue index 6751ccdab1..8fce151913 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 5780efe091..65c7d26a04 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 b6183c8a81..28da6afe2c 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 f4aa099d7a..5a504019c4 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 97ece8cba0..5ca37aea36 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),