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] Duplicate page textbox parentId #86

Closed andoni-enriquez closed 8 months ago

andoni-enriquez commented 1 year ago

Steps to reproduce

  1. Create a text box
  2. Duplicate the page
  3. Edit the textbox

Expected result

Edit the textbox as a new shape. On duplicate the (state) parentId gets updated but something seems to be broke.

Actual result

A shape (shapeId) has a parent (duplicatedPageId) that does not exist!

Minimal example

Web UI

duplicate-bug

aamoronatti commented 1 year ago

Any fix to this?