Skip to content

Commit

Permalink
fix(16992): Prevent Page Scroll During Keyboard Navigation in MenuBut…
Browse files Browse the repository at this point in the history
…ton and ComboButton options (#16998)

* fix(15337): fix release names in update automation

* fix(15337): fix release names in update automation

* fix(16992): prevent page scroll keyboard navigation
  • Loading branch information
2nikhiltom authored and tay1orjones committed Jul 22, 2024
1 parent cc284f3 commit 133a9e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/src/components/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ const Menu = forwardRef<HTMLUListElement, MenuProps>(function Menu(
}

function focusItem(e?: React.KeyboardEvent<HTMLUListElement>) {
e?.preventDefault();
const currentItem = focusableItems.findIndex((item) =>
item.ref?.current?.contains(document.activeElement)
);
Expand Down

0 comments on commit 133a9e9

Please sign in to comment.