Skip to content

Commit

Permalink
Fixed #4522 - Add extra check for separator item
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Sep 30, 2023
1 parent 0c7a421 commit 9298b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/panelmenu/PanelMenuList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 9298b69

Please sign in to comment.