Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Incorrect Positioning of Context Menu in TableActionMenuPlugin #7079

Open
dewocom opened this issue Jan 22, 2025 · 0 comments
Open

Bug: Incorrect Positioning of Context Menu in TableActionMenuPlugin #7079

dewocom opened this issue Jan 22, 2025 · 0 comments
Labels
popover Issues related to popover/menu code in the playground

Comments

@dewocom
Copy link

dewocom commented Jan 22, 2025

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

  1. Open the [Playground] on the official website (tested on the latest available version at the time of writing).
  2. Create a document with a long text section.
  3. Insert a table somewhere in the middle or near the end of the document.
  4. Right-click or trigger the TableActionMenuPlugin context menu.
  5. 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]

D0.97.D0.B0.D0.BF.D0.B8.D1.81.D1.8C.20.D1.8D.D0.BA.D1.80.D0.B0.D0.BD.D0.B0.202025-01-22.20.D0.B2.2016.mp4
@etrepum etrepum added the popover Issues related to popover/menu code in the playground label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
popover Issues related to popover/menu code in the playground
Projects
None yet
Development

No branches or pull requests

2 participants