Skip to content

Commit

Permalink
Fix "containerRef.current is null" error after popup closes
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeJellinek committed Aug 18, 2023
1 parent f1869b4 commit b341bea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/components/view/view-popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ function ViewPopup({ id, rect, className, uniqueRef, padding, children, onRender
}, [uniqueRef]);

function updatePopupPosition() {
if (!containerRef.current) {
return;
}

let width = containerRef.current.offsetWidth;
let height = containerRef.current.offsetHeight;

Expand Down

0 comments on commit b341bea

Please sign in to comment.