diff --git a/components/ui/Modal/Modal.tsx b/components/ui/Modal/Modal.tsx index 34162360b..150ddcdf0 100644 --- a/components/ui/Modal/Modal.tsx +++ b/components/ui/Modal/Modal.tsx @@ -16,12 +16,10 @@ interface Props { onEnter?: () => void | null } -// Todo: Drag focus to component - const Modal: FC = ({ children, open, onClose, onEnter = null }) => { const ref = useRef() as React.MutableRefObject - const handleKey = (e: KeyboardEvent) => { + const handleKey = (e: KeyboardEvent) => { if (e.key === 'Escape') { return onClose() }