Merge branch 'handle_keydown_issues' into 'master'

Handle Esc/click outside the "Are you sure you want to delete this post?" modal events. Fixes #118 and #127

Closes #127 and #118

See merge request soapbox-pub/soapbox-fe!27
merge-requests/29/merge
Alex Gleason 2020-05-28 19:50:53 +00:00
commit 503072f715
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -57,6 +57,8 @@ class ModalRoot extends React.PureComponent {
onConfirm: () => onCancelReplyCompose(),
onCancel: () => onOpenModal('COMPOSE'),
});
} else if (composeText && type === 'CONFIRM') {
onOpenModal('COMPOSE');
} else {
this.props.onClose();
}