Skip to content

Link UI Incorrectly Anchored when Newly Created #58325

@jeryj

Description

@jeryj

Description

Same bug as #58280, but the fix only works for existing links. When a link is created, and the popover remains open, it is fixed to a point on the screen and doesn't update its position to stay with the link.

Step-by-step reproduction instructions

  1. Add a link on a page with enough content to scroll the editor
  2. While the popover is still open from the initial link creation, scroll the page
  3. The popover will be fixed in a position on the page instead of staying near the newly created link.

Screenshots, screen recording, code snippet

Screen.Recording.2024-01-26.at.9.46.23.AM.mov

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions