Fixed #4522 - Add extra check for separator item
parent
0c7a4219f7
commit
9298b69ee5
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue