diff --git a/packages/richtext-lexical/src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx b/packages/richtext-lexical/src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx index 9002dfdf54a..93c18259621 100644 --- a/packages/richtext-lexical/src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx +++ b/packages/richtext-lexical/src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx @@ -175,7 +175,7 @@ function TableActionMenu({ let topPosition = menuButtonRect.top if (topPosition + dropDownElementRect.height > window.innerHeight) { const position = menuButtonRect.bottom - dropDownElementRect.height - topPosition = (position < 0 ? margin : position) + window.pageYOffset + topPosition = position < 0 ? margin : position } dropDownElement.style.top = `${topPosition}px` }