From 145bfdac2bf9169d01b60d8007ba9c374b15b43f Mon Sep 17 00:00:00 2001 From: oliverchanyw Date: Thu, 3 Oct 2024 17:08:36 +0800 Subject: [PATCH] chore: use portal by default in avatar menu --- react/src/AvatarMenu/AvatarMenu.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/react/src/AvatarMenu/AvatarMenu.tsx b/react/src/AvatarMenu/AvatarMenu.tsx index 81d9f354..015ed0c1 100644 --- a/react/src/AvatarMenu/AvatarMenu.tsx +++ b/react/src/AvatarMenu/AvatarMenu.tsx @@ -6,6 +6,7 @@ import { MenuDivider, MenuListProps, MenuProps, + Portal, useMultiStyleConfig, } from '@chakra-ui/react' import { merge } from 'lodash' @@ -78,9 +79,11 @@ export const AvatarMenu = ({ {hasNotification && badge} - - {children} - + + + {children} + + )}