From 056ec7544a0edfd7c624e3f455473e205593a083 Mon Sep 17 00:00:00 2001 From: Jash Vithlani Date: Sat, 22 Feb 2025 14:43:23 +0530 Subject: [PATCH] [lexical-table] fix: table cell background copy paste not working --- packages/lexical-table/src/LexicalTableSelectionHelpers.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/lexical-table/src/LexicalTableSelectionHelpers.ts b/packages/lexical-table/src/LexicalTableSelectionHelpers.ts index 10d83e36bbf..8472dca94de 100644 --- a/packages/lexical-table/src/LexicalTableSelectionHelpers.ts +++ b/packages/lexical-table/src/LexicalTableSelectionHelpers.ts @@ -800,6 +800,9 @@ export function applyTableHandlers( } const originalChildren = currentGridCellNode.getChildren(); + currentGridCellNode.setBackgroundColor( + newGridCellNode.getBackgroundColor(), + ); newGridCellNode.getChildren().forEach((child) => { if ($isTextNode(child)) { const paragraphNode = $createParagraphNode();