Skip to content

Commit

Permalink
fix: (#723) Drawer 내부가 탭 기능이 안되던 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilpop8663 committed Oct 6, 2023
1 parent b8bf29b commit be2314d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/components/common/Drawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ export default forwardRef(function Drawer(
};

const handleKeyDown = (event: KeyboardEvent<HTMLDialogElement>) => {
event.preventDefault();

if (event.currentTarget.open && event.key === 'Escape') {
event.preventDefault();

handleDrawerClose();
}
};
Expand All @@ -56,7 +56,6 @@ export default forwardRef(function Drawer(
>
<S.CloseButton onClick={handleDrawerClose}>사이드바 닫기버튼</S.CloseButton>
{children}
<div style={{ backgroundColor: 'red', width: '100%', height: '100%' }} />
</S.Dialog>
);
});

0 comments on commit be2314d

Please sign in to comment.