From 7294394df9c73c05e92d86bf34f68c80eaff1394 Mon Sep 17 00:00:00 2001 From: mohamedsalem401 Date: Wed, 18 Dec 2024 00:26:09 +0200 Subject: [PATCH] make collection items undraggable and undroppable --- .../model/collection_component/CollectionComponent.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/src/data_sources/model/collection_component/CollectionComponent.ts b/packages/core/src/data_sources/model/collection_component/CollectionComponent.ts index fe6a30887..d509f0159 100644 --- a/packages/core/src/data_sources/model/collection_component/CollectionComponent.ts +++ b/packages/core/src/data_sources/model/collection_component/CollectionComponent.ts @@ -68,6 +68,7 @@ export default class CollectionComponent extends Component { ...props, type: ConditionalVariableType, components: components, + dropbbable: false, }; // @ts-expect-error super(conditionalCmptDef, opt); @@ -101,6 +102,8 @@ function resolveBlockValue(item: any, block: any) { } } } - + block['droppable'] = false; + block['draggable'] = false; + return block; }