Merge pull request #4523 from primefaces/issue-4522
Fixed #4522 - Add extra check for separator itempull/4534/head
commit
f7f17cc4a1
|
@ -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