Fix keyboard events while menu is open.

This commit is contained in:
Steve Ruiz 2022-05-20 15:22:50 +01:00
parent 9d8c4888f3
commit eca66b1c54
7 changed files with 42 additions and 3 deletions

View file

@ -1,5 +1,17 @@
## 1.2.4 ## 1.2.4
## 1.13.3
### Patch Changes
- Fix keyboard events when style menu is open.
## 1.13.2
### Patch Changes
- Move style panel to right corner.
## 1.13.1 ## 1.13.1
### Patch Changes ### Patch Changes

View file

@ -2,7 +2,7 @@
"name": "tldraw-vscode", "name": "tldraw-vscode",
"displayName": "tldraw", "displayName": "tldraw",
"description": "The tldraw Extension for VS Code.", "description": "The tldraw Extension for VS Code.",
"version": "1.13.1", "version": "1.13.3",
"license": "MIT", "license": "MIT",
"publisher": "tldraw-org", "publisher": "tldraw-org",
"repository": { "repository": {

View file

@ -1,5 +1,19 @@
# @tldraw/www # @tldraw/www
## 1.6.5
### Patch Changes
- Updated dependencies
- @tldraw/tldraw@1.14.2
## 1.6.4
### Patch Changes
- Updated dependencies
- @tldraw/tldraw@1.14.1
## 1.6.3 ## 1.6.3
### Patch Changes ### Patch Changes

View file

@ -1,6 +1,6 @@
{ {
"name": "@tldraw/www", "name": "@tldraw/www",
"version": "1.6.3", "version": "1.6.5",
"private": true, "private": true,
"description": "A tiny little drawing app (site).", "description": "A tiny little drawing app (site).",
"repository": { "repository": {

View file

@ -1,5 +1,17 @@
# Changelog # Changelog
## 1.14.2
### Patch Changes
- Fix keyboard events when style menu is open.
## 1.14.1
### Patch Changes
- Move style panel to right corner.
## 1.14.0 ## 1.14.0
### Minor Changes ### Minor Changes

View file

@ -1,6 +1,6 @@
{ {
"name": "@tldraw/tldraw", "name": "@tldraw/tldraw",
"version": "1.14.0", "version": "1.14.2",
"description": "A tiny little drawing app (editor)", "description": "A tiny little drawing app (editor)",
"author": "@steveruizok", "author": "@steveruizok",
"repository": { "repository": {

View file

@ -197,6 +197,7 @@ export const StyleMenu = React.memo(function ColorMenu() {
dir="ltr" dir="ltr"
onOpenChange={handleMenuOpenChange} onOpenChange={handleMenuOpenChange}
open={keepOpen ? true : undefined} open={keepOpen ? true : undefined}
modal={false}
> >
<DropdownMenu.Trigger asChild id="TD-Styles"> <DropdownMenu.Trigger asChild id="TD-Styles">
<ToolButton variant="text"> <ToolButton variant="text">