From 752d7759b373a1e748cabdc7f04cefcd99ccb684 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Wed, 20 Oct 2021 10:01:24 +0100 Subject: [PATCH] Fix insertion point animation (#35729) --- .../block-editor/src/components/block-tools/insertion-point.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/block-editor/src/components/block-tools/insertion-point.js b/packages/block-editor/src/components/block-tools/insertion-point.js index aec2e554473e90..1baae653794229 100644 --- a/packages/block-editor/src/components/block-tools/insertion-point.js +++ b/packages/block-editor/src/components/block-tools/insertion-point.js @@ -291,6 +291,9 @@ function InsertionPointPopover( { // Render in the old slot if needed for backward compatibility, // otherwise render in place (not in the the default popover slot). __unstableSlotName={ __unstablePopoverSlot || null } + // Forces a remount of the popover when its position changes + // This makes sure the popover doesn't animate from its previous position. + key={ nextClientId + '--' + rootClientId } >