Skip to content

Commit

Permalink
Fix bug with getOutofList
Browse files Browse the repository at this point in the history
  • Loading branch information
dimensi authored Apr 5, 2019
1 parent 964edb4 commit a722f93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ class List {
/** Prevent Default li generation if item is empty */
if (currentNode === lastItem && !lastItem.innerHTML.replace('<br>', ' ').trim()) {
/** Insert New Block and set caret */
currentNode.parentElement.removeChild(currentNode);
this.api.blocks.insertNewBlock();
event.preventDefault();
event.stopPropagation();
Expand Down

0 comments on commit a722f93

Please sign in to comment.