From 25d7df63007451014927bf1a2efd276a00e8bb30 Mon Sep 17 00:00:00 2001 From: crockwave Date: Wed, 27 May 2020 16:30:42 -0500 Subject: [PATCH] - 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 --- app/gabsocial/components/modal_root.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/gabsocial/components/modal_root.js b/app/gabsocial/components/modal_root.js index 668af260e..1f7f2f1d1 100644 --- a/app/gabsocial/components/modal_root.js +++ b/app/gabsocial/components/modal_root.js @@ -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(); }