From 31289cab2b2d394d5298448c8ac76f7411a325da Mon Sep 17 00:00:00 2001 From: Rafael Galani Date: Tue, 23 Mar 2021 04:20:21 -0300 Subject: [PATCH] Adding onRemove event to verse block (#30104) --- packages/block-library/src/verse/edit.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/block-library/src/verse/edit.js b/packages/block-library/src/verse/edit.js index 08ea73bccb043e..f6fac870d89114 100644 --- a/packages/block-library/src/verse/edit.js +++ b/packages/block-library/src/verse/edit.js @@ -18,6 +18,7 @@ export default function VerseEdit( { attributes, setAttributes, mergeBlocks, + onRemove, } ) { const { textAlign, content } = attributes; const blockProps = useBlockProps( { @@ -48,6 +49,7 @@ export default function VerseEdit( { } } aria-label={ __( 'Verse text' ) } placeholder={ __( 'Write verseā€¦' ) } + onRemove={ onRemove } onMerge={ mergeBlocks } textAlign={ textAlign } { ...blockProps }