diff --git a/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js b/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js index 0075df0cdd31..a16a28d08c97 100644 --- a/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js +++ b/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js @@ -146,11 +146,9 @@ class PopoverReportActionContextMenu extends React.Component { // But it is possible that every new request registers new callbacks thus instanceID is used to corelate those callbacks this.instanceID = Math.random().toString(36).substr(2, 5); - // Register the onHide callback only when Popover is shown to remove the race conditions when there are mutltiple popover open requests - this.onPopoverShow = () => { - onShow(); - this.onPopoverHide = onHide; - }; + this.onPopoverShow = onShow; + this.onPopoverHide = onHide; + this.getContextMenuMeasuredLocation().then(({x, y}) => { this.setState({ cursorRelativePosition: {