fix(core): unwrap ref when checking if connection in progress (#1789)
* fix(core): unwrap ref when checking if connection in progress Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> * chore(changeset): add Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --------- Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
5
.changeset/tame-cars-occur.md
Normal file
5
.changeset/tame-cars-occur.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@vue-flow/core": patch
|
||||
---
|
||||
|
||||
Unwrap ref when checking if connection in progress.
|
||||
@@ -82,7 +82,7 @@ function wrapHandler(handler: Function, containerRef: HTMLDivElement | null) {
|
||||
}
|
||||
|
||||
function onClick(event: MouseEvent) {
|
||||
if (selectionInProgress || connectionInProgress) {
|
||||
if (selectionInProgress || connectionInProgress.value) {
|
||||
selectionInProgress = false
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user