Fixed #4522 - Add extra check for separator item

pull/4523/head
Çetin 2023-09-30 10:28:47 +03:00
parent 0c7a4219f7
commit 9298b69ee5
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ export default {
return !!processedItem && (processedItem.level === 0 || this.isItemActive(processedItem)) && this.isItemVisible(processedItem); return !!processedItem && (processedItem.level === 0 || this.isItemActive(processedItem)) && this.isItemVisible(processedItem);
}, },
isValidItem(processedItem) { isValidItem(processedItem) {
return !!processedItem && !this.isItemDisabled(processedItem); return !!processedItem && !this.isItemDisabled(processedItem) && !this.getItemProp(processedItem, 'separator');
}, },
findFirstItem() { findFirstItem() {
return this.visibleItems.find((processedItem) => this.isValidItem(processedItem)); return this.visibleItems.find((processedItem) => this.isValidItem(processedItem));