Skip to content

Commit

Permalink
Fix setting current selectedItemIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
WojtekBoman committed Apr 18, 2024
1 parent 3ec8f2f commit f74c3d5
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 f74c3d5

Please sign in to comment.