Skip to content

Commit

Permalink
Fix insertion point animation (#35729)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Oct 20, 2021
1 parent 9e07dbc commit 752d775
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
>
<motion.div
layout={ ! disableMotion }
Expand Down

0 comments on commit 752d775

Please sign in to comment.