Skip to content

Bug: Non-text links lose link state when dragged #7692

@Thursdaylam

Description

@Thursdaylam

Lexical version: https://playground.lexical.dev/

Steps To Reproduce

  1. Insert an image

  2. Add a link to the image

  3. Drag the image to another location (click and hold the image itself, not the draggable tab on the left)

  4. Observe link is now lost

The current behavior

Image loses its link

The expected behavior

Link is retained. This is similar to the behaviour in google docs.

Impact of fix

Editors who do not implement the draggable tab are still able to move link-images without losing the link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions