From f61dd4a955e6c09d49f4fc1967e1cac5445697f7 Mon Sep 17 00:00:00 2001 From: Chris Villa Date: Mon, 13 Jan 2025 12:28:09 +0000 Subject: [PATCH] fix: ensure items in root DropZone can be selected --- packages/core/components/Puck/components/Fields/index.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/core/components/Puck/components/Fields/index.tsx b/packages/core/components/Puck/components/Fields/index.tsx index 07305f6df..526488b0b 100644 --- a/packages/core/components/Puck/components/Fields/index.tsx +++ b/packages/core/components/Puck/components/Fields/index.tsx @@ -136,8 +136,12 @@ const useResolvedFields = (): [FieldsType, boolean] => { }, [parent]); useEffect(() => { - // Must either be in root zone, or have parent - if (!state.ui.itemSelector?.zone || hasParent) { + // Must either be in default zone, or have parent + if ( + !state.ui.itemSelector?.zone || + state.ui.itemSelector?.zone === "default-zone" || + hasParent + ) { if (hasResolver) { setFieldsLoading(true);