Skip to content

Commit

Permalink
bug: Fix Double Deletion on Backspace
Browse files Browse the repository at this point in the history
  • Loading branch information
umaranis committed Mar 26, 2024
1 parent f11d1e8 commit e43b59a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
const node = getNodeByKey(nodeKey);
if (isHorizontalRuleNode(node)) {
node.remove();
return true;
}
}
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
const node = getNodeByKey(nodeKey);
if (isImageNode(node)) {
node.remove();
return true;
}
}
return false;
Expand Down

0 comments on commit e43b59a

Please sign in to comment.