tldraw/packages
David Sheldrick f6e7793f49
focus on container before deleting to avoid losing focus (#2354)
Fixes #2353 

so it turns out

- when you click a button that becomes the active element
- when you disable a button which is the active element, the button
blurs and the active element becomes document.body

### Change Type

- [x] `patch` — Bug fix

### Release Notes

- Prevents losing focus when clicking the trash button
2023-12-19 15:39:44 +00:00
..
assets Use custom font (#2343) 2023-12-19 14:17:45 +00:00
editor Stop shape text labels being hoverable when context menu is open (#2352) 2023-12-19 14:26:10 +00:00
state Change licenses to tldraw (#2167) 2023-12-19 10:41:01 +00:00
store Change licenses to tldraw (#2167) 2023-12-19 10:41:01 +00:00
tldraw focus on container before deleting to avoid losing focus (#2354) 2023-12-19 15:39:44 +00:00
tlschema Change licenses to tldraw (#2167) 2023-12-19 10:41:01 +00:00
utils fix png images with pixel ratios <0.5 crashing the app (#2350) 2023-12-19 12:35:42 +00:00
validate Change licenses to tldraw (#2167) 2023-12-19 10:41:01 +00:00