Skip to content

Commit

Permalink
Allow to control usePortal in ModalRootDesktop
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-medvedev-vk committed Nov 1, 2024
1 parent e062251 commit d7e603c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vkui/src/components/ModalRoot/ModalRootDesktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const ModalRootDesktop = ({
onClose,
onClosed,
modalOverlayTestId,
usePortal,
}: ModalRootWithDOMProps): React.ReactNode => {
const maskElementRef = React.useRef<HTMLDivElement>(null);
const maskAnimationFrame = React.useRef<number | undefined>(undefined);
Expand Down Expand Up @@ -208,6 +209,7 @@ export const ModalRootDesktop = ({
hasCustomPanelHeaderAfter && styles.hasCustomPanelHeaderAfterSlot,
styles.desktop,
)}
usePortal={usePortal}
>
<div
data-testid={modalOverlayTestId}
Expand Down

0 comments on commit d7e603c

Please sign in to comment.