Skip to content

Commit

Permalink
Fixed #3177 - Menubar: #item slot is never called
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Oct 31, 2022
1 parent b1bfb7f commit 625e1ae
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/menubar/Menubar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class="p-menubar-root-list"
role="menubar"
:items="processedItems"
:template="$slots.item"
:root="true"
:mobileActive="mobileActive"
tabindex="0"
Expand Down Expand Up @@ -76,9 +77,6 @@ export default {
default: null
}
},
outsideClickListener: null,
container: null,
menubar: null,
data() {
return {
mobileActive: false,
Expand All @@ -99,6 +97,12 @@ export default {
}
}
},
mounted() {
console.log(this.$slots.item);
},
outsideClickListener: null,
container: null,
menubar: null,
beforeUnmount() {
this.mobileActive = false;
this.unbindOutsideClickListener();
Expand Down

1 comment on commit 625e1ae

@paceband
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix...
Just one console log to clean up...

Please sign in to comment.