tldraw / tldraw-v1

A tiny little drawing app. This is the original 2021-2022 version, released under MIT.
https://old.tldraw.com
MIT License
61 stars 36 forks source link

[bug] Editing text shape loses focus when other shapes are added #84

Closed germanocaumo closed 1 year ago

germanocaumo commented 1 year ago

When User A user is typing in a text shape, and User B adds other shapes simultaneously, user A loses the selection/editing of the text.

Steps to reproduce:

  1. Start a multiplayer room
  2. Join with 2 users
  3. User A: Add a text shape and start typing in it User B: Draw a rectangle

Expected behaviour: the rectangle is added to User A canvas but he can continue typing in his text shape he started. Actual behaviour: the text shape is de-selected and the user can't type anymore unless he double-click again in the text

More context: it seems this does not happen for all type of shapes added, it works properly for Draw and Sticker shapes.