Skip to content

Commit

Permalink
Do not remove previous block on backspace (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
nylen authored Apr 28, 2017
1 parent 92be486 commit e622a12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions editor/modes/visual-editor/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ class VisualEditorBlock extends wp.element.Component {

const previousBlockSettings = wp.blocks.getBlockSettings( previousBlock.blockType );

// Remove the previous block if it's not mergeable
// Do nothing if the previous block is not mergeable
if ( ! previousBlockSettings.merge ) {
onRemove( previousBlock.uid );
return;
}

Expand Down

0 comments on commit e622a12

Please sign in to comment.