diff --git a/packages/lexical-playground/src/plugins/TableActionMenuPlugin/index.tsx b/packages/lexical-playground/src/plugins/TableActionMenuPlugin/index.tsx index 48f47d8667c..608a0b125c1 100644 --- a/packages/lexical-playground/src/plugins/TableActionMenuPlugin/index.tsx +++ b/packages/lexical-playground/src/plugins/TableActionMenuPlugin/index.tsx @@ -479,6 +479,17 @@ function TableActionMenu({ if ($isTableCellNode(cell)) { cell.setBackgroundColor(value); } + + if (DEPRECATED_$isGridSelection(selection)) { + const nodes = selection.getNodes(); + + for (let i = 0; i < nodes.length; i++) { + const node = nodes[i]; + if (DEPRECATED_$isGridCellNode(node)) { + node.setBackgroundColor(value); + } + } + } } }); },