Skip to content

Commit

Permalink
[lexical-playground] Fix Table Hover Actions Noclick Bug (facebook#6375)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivaylo Pavlov <ipavlov@Ivaylos-MacBook-Pro.local>
  • Loading branch information
2 people authored and 2wheeh committed Jul 17, 2024
1 parent e20f506 commit 2f2b667
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ function TableHoverActionsContainer({
const {y: editorElemY} = anchorElem.getBoundingClientRect();

if (hoveredRowNode) {
setShownColumn(false);
setShownRow(true);
setPosition({
height: BUTTON_WIDTH_PX,
Expand All @@ -116,6 +117,7 @@ function TableHoverActionsContainer({
});
} else if (hoveredColumnNode) {
setShownColumn(true);
setShownRow(false);
setPosition({
height: tableElemHeight,
left: tableElemRight + 5,
Expand Down

0 comments on commit 2f2b667

Please sign in to comment.