Skip to content

Commit

Permalink
fix: ensure items in root DropZone can be selected
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Jan 13, 2025
1 parent 9649e09 commit f61dd4a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/core/components/Puck/components/Fields/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f61dd4a

Please sign in to comment.