mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 09:52:35 +00:00
Fixed #4522 - Add extra check for separator item
This commit is contained in:
parent
0c7a4219f7
commit
9298b69ee5
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue