diff --git a/src/pages/home/report/ReportActionItem.js b/src/pages/home/report/ReportActionItem.js index 1a48e98dc580..7573fe389feb 100644 --- a/src/pages/home/report/ReportActionItem.js +++ b/src/pages/home/report/ReportActionItem.js @@ -92,6 +92,7 @@ class ReportActionItem extends Component { this.confirmDeleteAndHideModal = this.confirmDeleteAndHideModal.bind(this); this.hideDeleteConfirmModal = this.hideDeleteConfirmModal.bind(this); this.showDeleteConfirmModal = this.showDeleteConfirmModal.bind(this); + this.contextMenuHide = this.contextMenuHide.bind(this); } componentDidMount() { @@ -152,6 +153,13 @@ class ReportActionItem extends Component { }); } + contextMenuHide() { + this.onPopoverHide(); + + // After we have called the action, reset it. + this.onPopoverHide = () => {}; + } + /** * This gets called on Dimensions change to find the anchor coordinates for the action context menu. */ @@ -311,7 +319,7 @@ class ReportActionItem extends Component {