Skip to content

Bug: Can't click on 1 character text links inside the paragraph #7551

Open
@jamzi

Description

@jamzi
CleanShot.2025-05-20.at.16.11.16.mp4

The issue occurs with the one character links inside the paragraph, standalone one character link works great, also if you select the single character it works.

I'm assuming it has something to do with node selection, as you can see in the tree view, it selects the previous and next node for this edge case instead of selecting the child text inside the link node.

https://github.com/facebook/lexical/blob/main/packages/lexical-playground/src/plugins/FloatingLinkEditorPlugin/index.tsx#L342

Lexical version: 0.31.2

Steps To Reproduce

  1. Use the Lexical Playground
  2. Create or modify the editor content to include the one character link inside the paragraph.
  3. Try to click on the link, it should open the popover.

The expected behavior

I should be able to somehow select the one character link and open the associated toolbar.

Impact of fix

Let me know if there are any suggested workarounds for this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions