Skip to content

Commit

Permalink
Adding onRemove event to verse block (#30104)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelgallani authored Mar 23, 2021
1 parent b8bb4fb commit 31289ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/block-library/src/verse/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default function VerseEdit( {
attributes,
setAttributes,
mergeBlocks,
onRemove,
} ) {
const { textAlign, content } = attributes;
const blockProps = useBlockProps( {
Expand Down Expand Up @@ -48,6 +49,7 @@ export default function VerseEdit( {
} }
aria-label={ __( 'Verse text' ) }
placeholder={ __( 'Write verse…' ) }
onRemove={ onRemove }
onMerge={ mergeBlocks }
textAlign={ textAlign }
{ ...blockProps }
Expand Down

0 comments on commit 31289ca

Please sign in to comment.