From fef8a6be7687b69f3f7d98d8fc064b4b13843084 Mon Sep 17 00:00:00 2001 From: Jarda Snajdr Date: Fri, 17 Feb 2023 15:02:40 +0100 Subject: [PATCH] Block alignment controls: don't remount the block when alignments change --- packages/block-editor/src/hooks/align.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/hooks/align.js b/packages/block-editor/src/hooks/align.js index 184f490ef6df5..8d5c7f850e89b 100644 --- a/packages/block-editor/src/hooks/align.js +++ b/packages/block-editor/src/hooks/align.js @@ -119,7 +119,7 @@ export function addAttribute( settings ) { */ export const withToolbarControls = createHigherOrderComponent( ( BlockEdit ) => ( props ) => { - const blockEdit = ; + const blockEdit = ; const { name: blockName } = props; // Compute the block valid alignments by taking into account, // if the theme supports wide alignments or not and the layout's