Skip to content

Commit

Permalink
[Joy][MenuList] Fix constantly steals focus issue (mui#36799)
Browse files Browse the repository at this point in the history
- Update the `useMenu` Hook Paramters in the `<MenuUnstyled />` MUI Base Component & `<Menu />` MUI Joy Component
  • Loading branch information
yushanwebdev committed Apr 9, 2023
1 parent 75cd03e commit 75c24f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/mui-base/src/MenuUnstyled/MenuUnstyled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const MenuUnstyled = React.forwardRef(function MenuUnstyled<
open,
onClose,
listboxId,
isAnchorElExist: !!anchorEl,
});

React.useImperativeHandle(
Expand Down
1 change: 1 addition & 0 deletions packages/mui-joy/src/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const Menu = React.forwardRef(function Menu(inProps, ref) {
open,
onClose,
listboxId: id,
isAnchorElExist: !!anchorEl,
});

React.useImperativeHandle(
Expand Down

0 comments on commit 75c24f1

Please sign in to comment.