We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a535575 commit 39fb043Copy full SHA for 39fb043
apps/builder/app/builder/features/navigator/navigator-tree.tsx
@@ -437,6 +437,10 @@ const getBuilderDropTarget = (
437
};
438
439
const canDrag = (instance: Instance, instanceSelector: InstanceSelector) => {
440
+ // forbid moving root instance
441
+ if (instanceSelector.length === 1) {
442
+ return false;
443
+ }
444
if ($isContentMode.get()) {
445
const parentId = instanceSelector[1];
446
const parentInstance = $instances.get().get(parentId);
0 commit comments