From f74c3d57b869345a252af45e45616a2c5a57f427 Mon Sep 17 00:00:00 2001 From: Wojciech Boman Date: Thu, 18 Apr 2024 13:20:18 +0200 Subject: [PATCH] Fix setting current selectedItemIndex --- src/components/PopoverMenu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } };