From a61ccea3175bc256187dc064a06ab358f47c3fb2 Mon Sep 17 00:00:00 2001 From: DrMint Date: Mon, 11 Apr 2022 01:27:04 +0200 Subject: [PATCH] Popup had a problem when they need to be scroolable --- src/components/Popup.tsx | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/components/Popup.tsx b/src/components/Popup.tsx index b564a65..8e2267c 100644 --- a/src/components/Popup.tsx +++ b/src/components/Popup.tsx @@ -14,15 +14,12 @@ interface Props { export default function Popup(props: Props): JSX.Element { return (
{ - if (event.key.match("Escape")) props.setState(false); - }} - tabIndex={0} >
+
- {props.children}