Skip to content

Commit

Permalink
Merge pull request #19546 from 0xmiroslav/issue-19543
Browse files Browse the repository at this point in the history
fix anchor ref on PopoverReportActionContextMenu
  • Loading branch information
puneetlath committed May 24, 2023
2 parents 4cd496d + e4b8cf9 commit 327b786
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class PopoverReportActionContextMenu extends React.Component {
getContextMenuMeasuredLocation() {
return new Promise((resolve) => {
if (this.contextMenuAnchor) {
this.contextMenuAnchor.current.measureInWindow((x, y) => resolve({x, y}));
(this.contextMenuAnchor.current || this.contextMenuAnchor).measureInWindow((x, y) => resolve({x, y}));
} else {
resolve({x: 0, y: 0});
}
Expand Down Expand Up @@ -279,6 +279,7 @@ class PopoverReportActionContextMenu extends React.Component {
anchorPosition={this.state.popoverAnchorPosition}
animationIn="fadeIn"
disableAnimation={false}
animationOutTiming={1}
shouldSetModalVisibility={false}
fullscreen
>
Expand Down

0 comments on commit 327b786

Please sign in to comment.