Skip to content

Commit

Permalink
Merge pull request #5741 from parasharrajat/ESC-confirmModal
Browse files Browse the repository at this point in the history
Added cancel on `ESC` to the ConfirmModal
  • Loading branch information
Luke9389 authored Oct 12, 2021
2 parents 786223d + 4d24eaf commit 24cc6ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/AttachmentModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ class AttachmentModal extends PureComponent {
<ConfirmModal
title={this.props.translate('attachmentPicker.attachmentTooLarge')}
onConfirm={this.closeConfirmModal}
onCancel={this.closeConfirmModal}
isVisible={this.state.isConfirmModalOpen}
prompt={this.props.translate('attachmentPicker.sizeExceeded')}
confirmText={this.props.translate('common.close')}
Expand Down

0 comments on commit 24cc6ff

Please sign in to comment.