From 410a59df5b355df17a4a66726ab6dd1a8ef0246c Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 13 Mar 2025 06:55:09 +0100 Subject: [PATCH] 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> --- .changeset/tame-cars-occur.md | 5 +++++ packages/core/src/container/Pane/Pane.vue | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/tame-cars-occur.md diff --git a/.changeset/tame-cars-occur.md b/.changeset/tame-cars-occur.md new file mode 100644 index 00000000..bdac4ef2 --- /dev/null +++ b/.changeset/tame-cars-occur.md @@ -0,0 +1,5 @@ +--- +"@vue-flow/core": patch +--- + +Unwrap ref when checking if connection in progress. diff --git a/packages/core/src/container/Pane/Pane.vue b/packages/core/src/container/Pane/Pane.vue index 621b36c3..a1557777 100644 --- a/packages/core/src/container/Pane/Pane.vue +++ b/packages/core/src/container/Pane/Pane.vue @@ -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 }