Skip to content

Commit

Permalink
Update src/Menu.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo837 authored Dec 5, 2023
1 parent 3de0dd1 commit 4f140f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ const Menu = React.forwardRef<MenuRef, MenuProps>((props, ref) => {

const elementToFocus = key2element.get(shouldFocusKey);

if (shouldFocusKey && elementToFocus) {
if (shouldFocusKey) {
elementToFocus?.focus?.(options);
return;
}
Expand Down

0 comments on commit 4f140f8

Please sign in to comment.