Skip to content

Commit

Permalink
[lexical-table] fix: table cell background copy paste not working
Browse files Browse the repository at this point in the history
  • Loading branch information
jvithlani committed Feb 22, 2025
1 parent 90bc029 commit 056ec75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/lexical-table/src/LexicalTableSelectionHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 056ec75

Please sign in to comment.