Skip to content

Commit

Permalink
Fix: Apply background color to multiple selected cells (#5258)
Browse files Browse the repository at this point in the history
  • Loading branch information
paigekim29 authored Nov 20, 2023
1 parent ede6500 commit 77505ca
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}
});
},
Expand Down

2 comments on commit 77505ca

@vercel
Copy link

@vercel vercel bot commented on 77505ca Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical – ./packages/lexical-website

lexical-fbopensource.vercel.app
lexical-git-main-fbopensource.vercel.app
lexical.dev
lexicaljs.com
www.lexical.dev
lexicaljs.org

@vercel
Copy link

@vercel vercel bot commented on 77505ca Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical-playground – ./packages/lexical-playground

lexical-playground-git-main-fbopensource.vercel.app
lexical-playground.vercel.app
lexical-playground-fbopensource.vercel.app
playground.lexical.dev

Please sign in to comment.