From 46c9e184890093f6fc153a139bb2cd72cc9d5b81 Mon Sep 17 00:00:00 2001 From: Ankit Kumar Shah Date: Fri, 15 Nov 2024 13:09:19 +0530 Subject: [PATCH] Layout: show vertical alignment toolbar with allowSwitching enabled Remove layout.allowSwitching condition to display vertical alignment toolbar when flex layout is active. --- packages/block-editor/src/layouts/flex.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/block-editor/src/layouts/flex.js b/packages/block-editor/src/layouts/flex.js index 81718449695651..c67ebc17a785d4 100644 --- a/packages/block-editor/src/layouts/flex.js +++ b/packages/block-editor/src/layouts/flex.js @@ -94,9 +94,6 @@ export default { onChange, layoutBlockSupport, } ) { - if ( layoutBlockSupport?.allowSwitching ) { - return null; - } const { allowVerticalAlignment = true } = layoutBlockSupport; return (