Skip to content

Commit

Permalink
Merge pull request #40425 from software-mansion-labs/fix/select-popov…
Browse files Browse the repository at this point in the history
…er-menu-items-using-keyboard

Fix assignment of selectedItemIndex in PopoverMenu
  • Loading branch information
roryabraham authored Apr 18, 2024
2 parents 1db9087 + f74c3d5 commit a58133b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PopoverMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ function PopoverMenu({
setCurrentMenuItems([...selectedItem.subMenuItems]);
setEnteredSubMenuIndexes([...enteredSubMenuIndexes, index]);
} else {
onItemSelected(selectedItem, index);
selectedItemIndex.current = index;
onItemSelected(selectedItem, index);
}
};

Expand Down

0 comments on commit a58133b

Please sign in to comment.