Skip to content

Commit

Permalink
fix: bottomsheetselect를 portal로 렌더링 (#1722)
Browse files Browse the repository at this point in the history
  • Loading branch information
simeunseo authored Jan 14, 2025
1 parent adb1f76 commit 324cff2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { IconCheck, IconChevronDown } from '@sopt-makers/icons';
import { Button } from '@sopt-makers/ui';
import { ReactNode, useEffect, useState } from 'react';

import Portal from '@/components/common/Portal';
import { zIndex } from '@/styles/zIndex';

interface Option {
Expand Down Expand Up @@ -82,7 +83,7 @@ const BottomSheetSelect = ({
</InputField>

{open && (
<>
<Portal portalId='bottomsheet'>
<Overlay onClick={handleClose} />
<BottomSheet>
<OptionList>
Expand All @@ -103,7 +104,7 @@ const BottomSheetSelect = ({
확인
</Button>
</BottomSheet>
</>
</Portal>
)}
</Container>
);
Expand Down

0 comments on commit 324cff2

Please sign in to comment.