From 9298b69ee59e276b32b7eede6961568413713f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Sat, 30 Sep 2023 10:28:47 +0300 Subject: [PATCH] Fixed #4522 - Add extra check for separator item --- components/lib/panelmenu/PanelMenuList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/panelmenu/PanelMenuList.vue b/components/lib/panelmenu/PanelMenuList.vue index 3808fa1606..7b6854be5e 100644 --- a/components/lib/panelmenu/PanelMenuList.vue +++ b/components/lib/panelmenu/PanelMenuList.vue @@ -241,7 +241,7 @@ export default { return !!processedItem && (processedItem.level === 0 || this.isItemActive(processedItem)) && this.isItemVisible(processedItem); }, isValidItem(processedItem) { - return !!processedItem && !this.isItemDisabled(processedItem); + return !!processedItem && !this.isItemDisabled(processedItem) && !this.getItemProp(processedItem, 'separator'); }, findFirstItem() { return this.visibleItems.find((processedItem) => this.isValidItem(processedItem));