Skip to content

Commit

Permalink
fix(MessageBox): enable closing with esc key (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas742 authored Apr 29, 2020
1 parent 9347f16 commit 3377b75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/main/src/components/MessageBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ const MessageBox: FC<MessageBoxPropTypes> = forwardRef((props: MessageBoxPropTyp
style={style}
tooltip={tooltip}
className={className}
onAfterClose={open ? handleOnClose : null}
header={
<header className={classes.header} data-type={type}>
{!!iconToRender && <div className={classes.icon}>{iconToRender}</div>}
Expand Down

0 comments on commit 3377b75

Please sign in to comment.