Skip to content

Commit

Permalink
Preserve attributes on split (#18102)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored and hypest committed Nov 4, 2019
1 parent 0d105ef commit b5cde1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/list/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default function ListEdit( {
className={ className }
placeholder={ __( 'Write list…' ) }
onMerge={ mergeBlocks }
onSplit={ ( value ) => createBlock( name, { ordered, values: value } ) }
onSplit={ ( value ) => createBlock( name, { ...attributes, values: value } ) }
__unstableOnSplitMiddle={ () => createBlock( 'core/paragraph' ) }
onReplace={ onReplace }
onRemove={ () => onReplace( [] ) }
Expand Down

0 comments on commit b5cde1c

Please sign in to comment.