From fc920da799aa11c210572e30a3fa35097f71ccf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 25 Oct 2022 11:14:40 +0300 Subject: [PATCH] Fixed #3151 - Menu.vue: seperatorClass is not a function --- src/components/menu/Menu.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/menu/Menu.vue b/src/components/menu/Menu.vue index 1185b6113a..244eacfa82 100644 --- a/src/components/menu/Menu.vue +++ b/src/components/menu/Menu.vue @@ -356,8 +356,8 @@ 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', { @@ -365,6 +365,9 @@ export default { target: this.target }); }, + containerRef(el) { + this.container = el; + }, listRef(el) { this.list = el; } @@ -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(); },