tldraw/packages
Mitja Bezenšek 267fea8d5a
Delete an empty text shape when clicking on another text shape. (#1384)
This fixes an issue with empty text shape not being deleted when you
clicked on another text shape. This correctly worked if you clicked on a
shape of a different type or on canvas.

Before:


https://github.com/tldraw/tldraw/assets/2523721/cf79a0a5-c738-49d2-a861-4e23eafc29e5


After:


https://github.com/tldraw/tldraw/assets/2523721/51a31f7e-c0da-45bc-9d04-aa0b0752a459


### Change Type
- [x] `patch` — Bug Fix

### Test Plan

1. Create a text shape and add some text.
2. Double click on the empty canvas, which creates an empty text shape.
3. Click on the first text shape. Confirm that the empty text shape was
deleted and is no longer present.

- [x] Unit Tests
- [ ] Webdriver tests

### Release Notes

- Fix a problem with empty text shapes not getting deleted if you
clicked on another text shape.
2023-05-16 14:33:57 +00:00
..
assets Rework the assets package for strategy-specific imports (#1341) 2023-05-09 16:08:38 +00:00
editor Delete an empty text shape when clicking on another text shape. (#1384) 2023-05-16 14:33:57 +00:00
file-format avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
polyfills avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
primitives avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
tldraw avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
tlschema avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
tlstore avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
tlsync-client avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
tlvalidate avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
ui Add localizations for snapshots links (#1347) 2023-05-15 15:30:35 +00:00
utils avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00