From 2e32ed48dd6baf52f3cb2c20199a6370fa513eae Mon Sep 17 00:00:00 2001 From: Andrei Draganescu Date: Mon, 7 Oct 2024 09:53:32 +0300 Subject: [PATCH] fix bug with anchor rect when zoom out not engaged --- packages/block-editor/src/components/block-popover/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/block-popover/index.js b/packages/block-editor/src/components/block-popover/index.js index 1898d8ffb0f329..061525e75b5dfb 100644 --- a/packages/block-editor/src/components/block-popover/index.js +++ b/packages/block-editor/src/components/block-popover/index.js @@ -115,8 +115,8 @@ function BlockPopover( // than 0. This check is only there to satisfy the correctness of the // exhaustive-deps rule for the `useMemo` hook. popoverDimensionsRecomputeCounter < 0 || - ! rootSectionElement || - ! parentSectionElement || + ( isZoomOut && ! rootSectionElement ) || + ( isZoomOut && ! parentSectionElement ) || ! selectedElement || ( bottomClientId && ! lastSelectedElement ) ) {