Skip to content

Commit

Permalink
Fix splitting behaviour when we have some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Apr 18, 2017
1 parent 75a0f0d commit 49a169e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions blocks/components/editable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ export default class Editable extends wp.element.Component {
// Avoid splitting on single enter
if (
! lastNodeBeforeCursor ||
lastNodeBeforeCursor.childNodes.length !== 1 ||
lastNodeBeforeCursor.firstChild.tagName !== 'BR'
!! lastNodeBeforeCursor.textContent
) {
return;
}
Expand Down

0 comments on commit 49a169e

Please sign in to comment.