Skip to content

Commit

Permalink
fix: delete horizontal node in table cell node
Browse files Browse the repository at this point in the history
  • Loading branch information
keiseiTi committed Sep 5, 2024
1 parent bd507b9 commit 232230c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/lexical/src/LexicalSelection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,12 @@ export class RangeSelection implements BaseSelection {
if (this.forwardDeletion(anchor, anchorNode, isBackward)) {
return;
}

if ($isElementNode(anchorNode)) {
const childNode = anchorNode.getChildAtIndex(0);
if ($isDecoratorNode(childNode) && anchor.offset === 0) {
return;
}
}
// Handle the deletion around decorators.
const focus = this.focus;
const possibleNode = $getAdjacentNode(focus, isBackward);
Expand Down

0 comments on commit 232230c

Please sign in to comment.