Skip to content

Link Control: allow double clicking to edit text of link #59525

@bacoords

Description

@bacoords

Description

When you have a link inside text (paragraph, list item, etc) placing the cursor inside the link shifts focus to the popup, so your cursor leaves the paragraph text. This is new behavior in version 17.8.0

Proposed behavior : The way it has worked in the past: you click inside of a link and your cursor stays, allowing you to type inside the link without having to press esc

Step-by-step reproduction instructions

  1. Activate Gutenberg 17.8.0
  2. Hyperlink some text inside of a paragraph block.
  3. Place your cursor somewhere else, then try to place it back inside the link.
  4. Note that your cursor is gone and the link is focused

Screenshots, screen recording, code snippet

Ignore the weirdness of where the popovers sit on the screen, that's a separate Playground issue that's been reported

Screen.Recording.2024-03-02.at.11.26.09.AM.mov

Environment info

  • Default theme,(tested in other themes as well)
  • Only occurs when 17.8.0 is active

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

Labels

[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions