mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Fixed #3513 - Menu: TypeError with only disabled menuitems
This commit is contained in:
parent
201a6ac138
commit
ea4a2782e1
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ export default {
|
|||
const links = DomHandler.find(this.container, 'li.p-menuitem:not(.p-disabled)');
|
||||
let order = index >= links.length ? links.length - 1 : index < 0 ? 0 : index;
|
||||
|
||||
this.focusedOptionIndex = links[order].getAttribute('id');
|
||||
order > -1 && (this.focusedOptionIndex = links[order].getAttribute('id'));
|
||||
},
|
||||
toggle(event) {
|
||||
if (this.overlayVisible) this.hide();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue