From 507f1cb9660cb5ff1d1c1fc934d14099d67e7de2 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 15 Nov 2023 13:19:54 +0100 Subject: [PATCH] fix: copy component only if empty selection --- .../components/apps/editor/component/ComponentNavigation.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/apps/editor/component/ComponentNavigation.svelte b/frontend/src/lib/components/apps/editor/component/ComponentNavigation.svelte index d7a99b3747..bfacc9b950 100644 --- a/frontend/src/lib/components/apps/editor/component/ComponentNavigation.svelte +++ b/frontend/src/lib/components/apps/editor/component/ComponentNavigation.svelte @@ -131,7 +131,7 @@ } async function handleCopy(event: KeyboardEvent) { - if (!$selectedComponent || $jobsDrawerOpen) { + if (!$selectedComponent || $jobsDrawerOpen || window.getSelection()?.toString() != '') { return } tempGridItems = undefined