Skip to content

Commit

Permalink
Merge pull request #4523 from primefaces/issue-4522
Browse files Browse the repository at this point in the history
Fixed #4522 - Add extra check for separator item
  • Loading branch information
tugcekucukoglu authored Oct 2, 2023
2 parents 0c7a421 + 9298b69 commit f7f17cc
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 f7f17cc

Please sign in to comment.