Skip to content

Bug: Incorrect Positioning of Context Menu in TableActionMenuPlugin #7079

Open
@dewocom

Description

@dewocom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    popoverIssues related to popover/menu code in the playground

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions