Skip to content

Commit b7a9325

Browse files
fix: #8341, MenuBar: Up and down arrow key navigation not working with dropdown items in MenuBar (#8342)
Co-authored-by: Akshay Antony <akshayantony55@gmail.com>
1 parent 2dbbc66 commit b7a9325

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/lib/menubar/Menubar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ export const Menubar = React.memo(
559559

560560
useUpdateEffect(() => {
561561
if (focusTrigger) {
562-
const itemIndex = focusedItemInfo.index !== -1 ? findNextItemIndex(focusedItemInfo.index) : reverseTrigger.current ? findLastItemIndex() : findFirstFocusedItemIndex();
562+
const itemIndex = focusedItemInfo.index !== -1 ? findNextItemIndex(focusedItemInfo.index) : reverseTrigger.current ? findLastItemIndex() : findFirstItemIndex();
563563

564564
changeFocusedItemIndex(itemIndex);
565565
reverseTrigger.current = false;

0 commit comments

Comments
 (0)