Skip to content

Commit dd6a91f

Browse files
authored
fix(core): unwrap disableKeyboardA11y to check if keyboard movement is allowed (#1988)
* fix(core): unwrap disableKeyboardA11y to check if keyboard movement is disabled Signed-off-by: braks <[email protected]> * chore(changeset): add --------- Signed-off-by: braks <[email protected]>
1 parent 7acd6d7 commit dd6a91f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/many-forks-grin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@vue-flow/core": patch
3+
---
4+
5+
Correctly unwrap disableKeyboardA11y ref when checking if a selection can be moved or not.

packages/core/src/components/NodesSelection/NodesSelection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function onContextMenu(event: MouseEvent) {
4545
}
4646
4747
function onKeyDown(event: KeyboardEvent) {
48-
if (disableKeyboardA11y) {
48+
if (disableKeyboardA11y.value) {
4949
return
5050
}
5151

0 commit comments

Comments
 (0)