Skip to content

Link editor stays open if text shape is deleted while editing link #8049

@MitjaBezensek

Description

@MitjaBezensek

Description

In multiplayer, if user A is editing a link in a text shape's rich text toolbar and user B deletes that text shape, the link editor stays open with no way to dismiss it.

CleanShot.2026-02-20.at.14.40.33.mp4

Steps to reproduce

  1. Open the same room in two browser tabs
  2. In tab A, create a text shape with some text
  3. In tab A, select the text and open the link editor in the rich text toolbar
  4. In tab B, delete the text shape
  5. In tab A, the link editor remains visible and stuck

Expected behavior

The link editor should close when the underlying shape is deleted.

Location

packages/tldraw/src/lib/ui/components/Toolbar/LinkEditor.tsx

Metadata

Metadata

Assignees

Labels

sdkAffects the tldraw sdk

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions