- On Esc/click outside the "Are you sure you want to delete this post?" modal, now reverts back to the compose modal and retains any edited text
- Ctrl-Enter publishing also works in all of the compose modals
This commit is contained in:
parent
a85684835f
commit
25d7df6300
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue