Skip to content

Commit

Permalink
refactor #3223
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Nov 10, 2022
1 parent 29dc0f3 commit fa9f704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/menu/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,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;
order > 0 && (this.focusedOptionIndex = links[order].getAttribute('id'));
order > -1 && links.length > 0 && (this.focusedOptionIndex = links[order].getAttribute('id'));
},
toggle(event) {
if (this.overlayVisible) this.hide();
Expand Down

0 comments on commit fa9f704

Please sign in to comment.