From f88e09240c75dc4c88d1ac0ea8edcaf7a24101cb Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 22 Aug 2024 16:13:47 +0300 Subject: [PATCH] Fixed #6055 --- packages/primevue/src/contextmenu/ContextMenuSub.vue | 2 +- packages/primevue/src/megamenu/MegaMenuSub.vue | 2 +- packages/primevue/src/menubar/MenubarSub.vue | 2 +- packages/primevue/src/panelmenu/PanelMenuSub.vue | 2 +- packages/primevue/src/tieredmenu/TieredMenuSub.vue | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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),