Open
Description
The context menu in TableActionMenuPlugin is not positioned correctly when the table is located within a long text and is not near the beginning of the document. The menu appears offset or in an unexpected location, making it difficult to interact with.
Lexical version: 0.23.1
Steps To Reproduce
- Open the [Playground] on the official website (tested on the latest available version at the time of writing).
- Create a document with a long text section.
- Insert a table somewhere in the middle or near the end of the document.
- Right-click or trigger the TableActionMenuPlugin context menu.
- Observe that the menu does not appear aligned with the intended table cell or appears elsewhere in the document.
The current behavior
The menu appears offset or misaligned when the table is positioned further down in the document.
The expected behavior
The context menu should appear directly adjacent to the selected table cell, regardless of the table’s position in the document.
Plugin Version: Latest version available in Playground at the time of writing
Browser: [Safari]
Operating System: [macOS]