tldraw/packages
Mitja Bezenšek b232ac0c45
Fix an error when using context menu. (#2186)
Fixes the console error when using the context menu.

Fixes https://github.com/tldraw/tldraw/issues/2170

### 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.  Start the app.
2. Right click to open the context menu.
3. You should not see the "Warning: Function components cannot be given
refs. Attempts to access this ref will fail. Did you mean to use
React.forwardRef()?" error in the console. The error only happens on
first right click, so make sure to refresh the page before trying.

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

### Release Notes

- Fixes the console error when opening the context menu for the first
time.
2023-11-09 16:28:39 +00:00
..
assets bump prerelease from alpha to beta (#2148) 2023-11-06 11:57:12 +00:00
editor [fix] actions menu freezing ui (#2187) 2023-11-09 16:21:46 +00:00
state bump prerelease from alpha to beta (#2148) 2023-11-06 11:57:12 +00:00
store bump prerelease from alpha to beta (#2148) 2023-11-06 11:57:12 +00:00
tldraw Fix an error when using context menu. (#2186) 2023-11-09 16:28:39 +00:00
tlschema bump prerelease from alpha to beta (#2148) 2023-11-06 11:57:12 +00:00
utils bump prerelease from alpha to beta (#2148) 2023-11-06 11:57:12 +00:00
validate bump prerelease from alpha to beta (#2148) 2023-11-06 11:57:12 +00:00