diff --git a/packages/lexical/src/LexicalSelection.ts b/packages/lexical/src/LexicalSelection.ts index e1486865c81..f5253b89352 100644 --- a/packages/lexical/src/LexicalSelection.ts +++ b/packages/lexical/src/LexicalSelection.ts @@ -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);