Skip to content

Commit

Permalink
Add missing hook deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Aug 31, 2022
1 parent 4351685 commit 4d6926a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function BlockPopoverInbetween( {
? previousElement.offsetHeight
: nextElement.offsetHeight,
};
}, [ previousElement, nextElement, isVertical ] );
}, [ previousElement, nextElement, isVisible, isVertical ] );

const popoverAnchor = useMemo( () => {
if ( ( ! previousElement && ! nextElement ) || ! isVisible ) {
Expand Down Expand Up @@ -137,7 +137,7 @@ function BlockPopoverInbetween( {
return new window.DOMRect( left, top, 0, 0 );
},
};
}, [ previousElement, nextElement, isVisible ] );
}, [ previousElement, nextElement, isVisible, isVertical ] );

const popoverScrollRef = usePopoverScroll( __unstableContentRef );

Expand Down

0 comments on commit 4d6926a

Please sign in to comment.