From 28dacc91ba27397525965bb72b886d654a5e744a Mon Sep 17 00:00:00 2001 From: Mateusz Russak Date: Wed, 28 Feb 2024 15:58:07 +0100 Subject: [PATCH] chore: click prevent default --- ui/src/builder/BuilderApp.vue | 1 + ui/src/core_components/content/CoreLink.vue | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/src/builder/BuilderApp.vue b/ui/src/builder/BuilderApp.vue index dd98d6c83..28f27efc1 100644 --- a/ui/src/builder/BuilderApp.vue +++ b/ui/src/builder/BuilderApp.vue @@ -258,6 +258,7 @@ function handleRendererClick(ev: PointerEvent): void { const targetId = targetEl.dataset.streamsyncId; const targetInstancePath = targetEl.dataset.streamsyncInstancePath; if (targetId !== ssbm.getSelectedId()) { + ev.preventDefault(); ev.stopPropagation(); ssbm.setSelection(targetId, targetInstancePath); } diff --git a/ui/src/core_components/content/CoreLink.vue b/ui/src/core_components/content/CoreLink.vue index 646013889..54f84f8cc 100644 --- a/ui/src/core_components/content/CoreLink.vue +++ b/ui/src/core_components/content/CoreLink.vue @@ -78,7 +78,4 @@ const displayText = computed(() => { .CoreLink a { color: var(--primaryTextColor); } -.CoreLink.beingEdited:not(.selected) a { - pointer-events: none; -}