From 3377b75c5fbae24db8f599afc72e2b18974ad7cc Mon Sep 17 00:00:00 2001 From: Lukas Date: Wed, 29 Apr 2020 14:31:30 +0200 Subject: [PATCH] fix(MessageBox): enable closing with esc key (#463) --- packages/main/src/components/MessageBox/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/main/src/components/MessageBox/index.tsx b/packages/main/src/components/MessageBox/index.tsx index e52229bf14c..1fba547c309 100644 --- a/packages/main/src/components/MessageBox/index.tsx +++ b/packages/main/src/components/MessageBox/index.tsx @@ -125,6 +125,7 @@ const MessageBox: FC = forwardRef((props: MessageBoxPropTyp style={style} tooltip={tooltip} className={className} + onAfterClose={open ? handleOnClose : null} header={
{!!iconToRender &&
{iconToRender}
}