From d380b8abaab1af2d17f8a886eb3fab1732ade21b Mon Sep 17 00:00:00 2001 From: Udit Desai Date: Thu, 10 Oct 2019 18:05:25 +1100 Subject: [PATCH] Fix Block Controls behavior for List Block. When toggling between Bulleted List and Numbered List, the Block Controls for List block disappears. You have to click inside the block to get them back. Ideally, the Block Controls should always be present, if the block is selected. --- packages/block-library/src/list/edit.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/block-library/src/list/edit.js b/packages/block-library/src/list/edit.js index e9496cf359d9b2..6a76a376f617d3 100644 --- a/packages/block-library/src/list/edit.js +++ b/packages/block-library/src/list/edit.js @@ -35,12 +35,8 @@ export default function ListEdit( { const { ordered, values, reversed, start } = attributes; const tagName = ordered ? 'ol' : 'ul'; - const controls = ( { value, onChange } ) => { - if ( value.start === undefined ) { - return; - } - - return <> + const controls = ( { value, onChange } ) => ( + <> - ; - }; + + ); return <>