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
This commit is contained in:
commit
503072f715
1 changed files with 2 additions and 0 deletions
|
@ -57,6 +57,8 @@ class ModalRoot extends React.PureComponent {
|
||||||
onConfirm: () => onCancelReplyCompose(),
|
onConfirm: () => onCancelReplyCompose(),
|
||||||
onCancel: () => onOpenModal('COMPOSE'),
|
onCancel: () => onOpenModal('COMPOSE'),
|
||||||
});
|
});
|
||||||
|
} else if (composeText && type === 'CONFIRM') {
|
||||||
|
onOpenModal('COMPOSE');
|
||||||
} else {
|
} else {
|
||||||
this.props.onClose();
|
this.props.onClose();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue