Skip to content

Commit

Permalink
Fixed #3151 - Menu.vue: seperatorClass is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Oct 25, 2022
1 parent 7313daf commit fc920da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/menu/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -356,15 +356,18 @@ export default {
label(item) {
return typeof item.label === 'function' ? item.label() : item.label;
},
containerRef(el) {
this.container = el;
separatorClass(item) {
return ['p-menuitem-separator', item.class];
},
onOverlayClick(event) {
OverlayEventBus.emit('overlay-click', {
originalEvent: event,
target: this.target
});
},
containerRef(el) {
this.container = el;
},
listRef(el) {
this.list = el;
}
Expand All @@ -380,9 +383,6 @@ export default {
}
];
},
separatorClass(item) {
return ['p-menu-separator p-menuitem-separator', item.class]; // TODO: the 'p-menu-separator' class is deprecated since v3.18.0.
},
id() {
return this.$attrs.id || UniqueComponentId();
},
Expand Down

0 comments on commit fc920da

Please sign in to comment.