kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
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!27merge-requests/29/merge
commit
503072f715
|
@ -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();
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue