Skip to content

Commit

Permalink
Fix submenu keyboard navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaltby committed Apr 15, 2024
1 parent 82966b6 commit d7f1992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ui/buttons/DropdownButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export const DropdownButton: FC<DropdownButtonProps & ButtonProps> = React.memo(
) {
return child;
}
const itemIndex = subMenuChildArray.indexOf(child);
const itemIndex = subMenuItemChildren.indexOf(child);
return cloneElement(child, {
"data-index": itemIndex,
tabIndex: -1,
Expand Down

0 comments on commit d7f1992

Please sign in to comment.