diff --git a/src/components/contextmenu/ContextMenuSub.vue b/src/components/contextmenu/ContextMenuSub.vue index b8baffe8d..16acc5957 100755 --- a/src/components/contextmenu/ContextMenuSub.vue +++ b/src/components/contextmenu/ContextMenuSub.vue @@ -95,7 +95,7 @@ export default { if (this.activeItem && item === this.activeItem) this.activeItem = null; else - this.activeItem = item; + this.activeItem = item; } if (!item.items) { diff --git a/src/components/menubar/MenubarSub.vue b/src/components/menubar/MenubarSub.vue index 4f8631732..10827b925 100755 --- a/src/components/menubar/MenubarSub.vue +++ b/src/components/menubar/MenubarSub.vue @@ -117,7 +117,7 @@ export default { if (this.activeItem && item === this.activeItem) this.activeItem = null; else - this.activeItem = item; + this.activeItem = item; } if (!item.items) { diff --git a/src/components/tieredmenu/TieredMenuSub.vue b/src/components/tieredmenu/TieredMenuSub.vue index 17361a659..7b7071005 100755 --- a/src/components/tieredmenu/TieredMenuSub.vue +++ b/src/components/tieredmenu/TieredMenuSub.vue @@ -113,7 +113,7 @@ export default { if (this.activeItem && item === this.activeItem) this.activeItem = null; else - this.activeItem = item; + this.activeItem = item; } if (!item.items) { diff --git a/src/views/contextmenu/ContextMenuDoc.vue b/src/views/contextmenu/ContextMenuDoc.vue index e016bb548..edf59ca96 100755 --- a/src/views/contextmenu/ContextMenuDoc.vue +++ b/src/views/contextmenu/ContextMenuDoc.vue @@ -337,6 +337,10 @@ export default { p-menuitem Menuitem element. + + + p-menuitem-active + Active menuitem element. p-menuitem-text diff --git a/src/views/megamenu/MegaMenuDoc.vue b/src/views/megamenu/MegaMenuDoc.vue index 308797d58..cdd288df9 100755 --- a/src/views/megamenu/MegaMenuDoc.vue +++ b/src/views/megamenu/MegaMenuDoc.vue @@ -153,7 +153,7 @@ export default {

Two slots named "start" and "end" are provided to embed content before or after the items. In additon MegaMenu, offers item customization with the item template that receives the menuitem instance from the model as a parameter.