tldraw/packages
Lu Wilson 6549ab70e2
Fix clicking off the context menu (#2355)
Fixes https://github.com/tldraw/tldraw/issues/2357

This PR fixes not being able to close the context menu by clicking
- your selected shape
- the ui

It seems like the Radix's `modal` setting causes trouble for us. I think
we're better off turning it off.
We now show an indicator on hovered shapes when the context menu. This
is consistent with how our other menus currently work.

![2023-12-19 at 14 19 14 - Cyan
Bovid](https://github.com/tldraw/tldraw/assets/15892272/88b492c2-8f3b-40bc-9dec-744fe72cda3b)

![2023-12-19 at 14 21 36 - Amaranth
Vulture](https://github.com/tldraw/tldraw/assets/15892272/1f19751d-499b-40c3-9b28-9f41a2f27ab2)

### Change Type

- [x] `patch` — Bug fix
- [ ] `minor` — New feature
- [ ] `major` — Breaking change
- [ ] `dependencies` — Changes to package dependencies[^1]
- [ ] `documentation` — Changes to the documentation only[^2]
- [ ] `tests` — Changes to any test code only[^2]
- [ ] `internal` — Any other changes that don't affect the published
package[^2]
- [ ] I don't know

[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version

### Test Plan

1. Add a step-by-step description of how to test your PR here.
2.

- [ ] Unit Tests
- [ ] End to end tests

### Release Notes

- Fix not being able to close the context menu by clicking on the UI or
your selected shape.

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-12-20 14:39:34 +00:00
..
assets Use custom font (#2343) 2023-12-19 14:17:45 +00:00
editor Fix clicking off the context menu (#2355) 2023-12-20 14:39:34 +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 Fix clicking off the context menu (#2355) 2023-12-20 14:39:34 +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