diff --git a/packages/block-library/src/post-date/edit.js b/packages/block-library/src/post-date/edit.js index f8cd268358d49f..0a70758ac32f09 100644 --- a/packages/block-library/src/post-date/edit.js +++ b/packages/block-library/src/post-date/edit.js @@ -108,40 +108,45 @@ export default function PostDateEdit( { setAttributes( { textAlign: nextAlign } ); } } /> - { date && ! isDescendentOfQueryLoop && ( - - ( - - ) } - renderToggle={ ( { isOpen, onToggle } ) => { - const openOnArrowDown = ( event ) => { - if ( ! isOpen && event.keyCode === DOWN ) { - event.preventDefault(); - onToggle(); - } - }; - return ( - + ( + - ); - } } - /> - - ) } + ) } + renderToggle={ ( { isOpen, onToggle } ) => { + const openOnArrowDown = ( event ) => { + if ( + ! isOpen && + event.keyCode === DOWN + ) { + event.preventDefault(); + onToggle(); + } + }; + return ( + + ); + } } + /> + + ) }