diff --git a/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js b/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js index 2ac4cf1042b02..da1c83348f5e5 100644 --- a/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js +++ b/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js @@ -201,8 +201,10 @@ class PopoverReportActionContextMenu extends React.Component { * After Popover hides, call the registered onPopoverHide & onPopoverHideActionCallback callback and reset it */ runAndResetOnPopoverHide() { - this.onPopoverHide = this.runAndResetCallback(this.onPopoverHide); - this.onPopoverHideActionCallback = this.runAndResetCallback(this.onPopoverHideActionCallback); + this.setState({reportID: '0', reportAction: {}}, () => { + this.onPopoverHide = this.runAndResetCallback(this.onPopoverHide); + this.onPopoverHideActionCallback = this.runAndResetCallback(this.onPopoverHideActionCallback); + }); } /** @@ -214,8 +216,6 @@ class PopoverReportActionContextMenu extends React.Component { this.onPopoverHideActionCallback = onHideActionCallback; } this.setState({ - reportID: '0', - reportAction: {}, selection: '', reportActionDraftMessage: '', isPopoverVisible: false,