diff --git a/src/components/PopoverMenu.tsx b/src/components/PopoverMenu.tsx index 7baf8bb8830e..ca4adc5109bd 100644 --- a/src/components/PopoverMenu.tsx +++ b/src/components/PopoverMenu.tsx @@ -105,8 +105,8 @@ function PopoverMenu({ setCurrentMenuItems([...selectedItem.subMenuItems]); setEnteredSubMenuIndexes([...enteredSubMenuIndexes, index]); } else { - onItemSelected(selectedItem, index); selectedItemIndex.current = index; + onItemSelected(selectedItem, index); } };