Skip to content

Commit

Permalink
Fiks backspace for andre blokker enn index: 1 (#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
routsi authored Nov 26, 2024
1 parent bcfb50a commit 1ae19f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@ export const merge: Action<LetterEditorState, [literalIndex: LiteralIndex, targe
block.content.splice(literalIndex.contentIndex, 1);
deleteElement(content, block.content, block.deletedContent);
draft.focus = {
blockIndex: 1,
blockIndex: literalIndex.blockIndex,
contentIndex: literalIndex.contentIndex - 1,
cursorPosition: text(previousContentSameBlock).length,
};
} else {
draft.focus = {
blockIndex: 1,
blockIndex: literalIndex.blockIndex,
contentIndex: literalIndex.contentIndex - 1,
cursorPosition: text(previousContentSameBlock).length,
};
Expand Down

0 comments on commit 1ae19f1

Please sign in to comment.