Skip to content

Commit

Permalink
fix: Fix insert
Browse files Browse the repository at this point in the history
  • Loading branch information
clepski committed Jan 8, 2025
1 parent 4dadd20 commit 0988a1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/foundation/handle-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ function handleInsert({
reference = null;
}

parent.insertBefore(node, reference);

if (parentNode) {
// undo: move child node back to original place
return {
Expand Down

0 comments on commit 0988a1a

Please sign in to comment.