diff --git a/packages/lexical-table/src/LexicalTableSelectionHelpers.ts b/packages/lexical-table/src/LexicalTableSelectionHelpers.ts index 400d88fdde6..7d89e3fb961 100644 --- a/packages/lexical-table/src/LexicalTableSelectionHelpers.ts +++ b/packages/lexical-table/src/LexicalTableSelectionHelpers.ts @@ -32,6 +32,7 @@ import { $getNearestNodeFromDOMNode, $getPreviousSelection, $getSelection, + $isDecoratorNode, $isElementNode, $isRangeSelection, $isTextNode, @@ -1359,6 +1360,11 @@ function $handleArrowKey( return false; } + const selectedNodes = selection.getNodes(); + if (selectedNodes.length === 1 && $isDecoratorNode(selectedNodes[0])) { + return false; + } + if ( isExitingTableAnchor(anchorType, anchorOffset, anchorNode, direction) ) {