Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Prevent selection of pasted data (#1782)

Bogdan Chadkinfa8dc705baa9
diff --git a/apps/builder/app/shared/copy-paste/plugin-instance.ts b/apps/builder/app/shared/copy-paste/plugin-instance.ts
index 24f1ee5e52..6973ba5923 100644
--- a/apps/builder/app/shared/copy-paste/plugin-instance.ts
+++ b/apps/builder/app/shared/copy-paste/plugin-instance.ts
@@ -19,7 +19,6 @@ import {
instancesStore,
selectedPageStore,
breakpointsStore,
- selectedStyleSourceSelectorStore,
assetsStore,
projectStore,
registeredComponentMetasStore,
@@ -314,14 +313,6 @@ export const onPaste = (clipboardData: string) => {
copiedStyleSourceIds,
mergedBreakpointIds
);
-
- // first item is guaranteed root of copied tree
- const copiedRootInstanceId = Array.from(copiedInstanceIds.values())[0];
- selectedInstanceSelectorStore.set([
- copiedRootInstanceId,
- ...instanceSelector,
- ]);
- selectedStyleSourceSelectorStore.set(undefined);
}
);
};