From 06ee5e14d06beecdf26e07afaae6b4a5d47eaef8 Mon Sep 17 00:00:00 2001 From: Mayank Tripathi <70465598+Mayank-Tripathi32@users.noreply.github.com> Date: Wed, 22 Jan 2025 13:29:22 +0530 Subject: [PATCH] Spacer: Fix flex layout unit reset (#68815) Co-authored-by: Mayank-Tripathi32 Co-authored-by: carolinan Co-authored-by: Mamaduka Co-authored-by: ndiego Co-authored-by: stokesman Co-authored-by: hanneslsm --- packages/block-library/src/spacer/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/spacer/edit.js b/packages/block-library/src/spacer/edit.js index 1e0ffb9700d685..af84edf7baf657 100644 --- a/packages/block-library/src/spacer/edit.js +++ b/packages/block-library/src/spacer/edit.js @@ -260,7 +260,7 @@ const SpacerEdit = ( { isFlexLayout && selfStretch !== 'fill' && selfStretch !== 'fit' && - ! flexSize + flexSize === undefined ) { if ( inheritedOrientation === 'horizontal' ) { // If spacer is moving from a vertical container to a horizontal container,