diff --git a/src/admin/select/SelectPhotosProvider.tsx b/src/admin/select/SelectPhotosProvider.tsx index 0dd579d5..cbea400e 100644 --- a/src/admin/select/SelectPhotosProvider.tsx +++ b/src/admin/select/SelectPhotosProvider.tsx @@ -32,7 +32,7 @@ export default function SelectPhotosProvider({ useState(false); const getPhotoGridElements = useCallback(() => - document.querySelectorAll(`[${DATA_KEY_PHOTO_GRID}]`) + document.querySelectorAll(`[${DATA_KEY_PHOTO_GRID}=true]`) , []); useEffect(() => { diff --git a/src/photo/PhotoGrid.tsx b/src/photo/PhotoGrid.tsx index c19ab00c..f43dbd01 100644 --- a/src/photo/PhotoGrid.tsx +++ b/src/photo/PhotoGrid.tsx @@ -23,6 +23,7 @@ export default function PhotoGrid({ staggerOnFirstLoadOnly = true, additionalTile, small, + selectable = true, onLastPhotoVisible, onAnimationComplete, ...categories @@ -36,6 +37,7 @@ export default function PhotoGrid({ staggerOnFirstLoadOnly?: boolean additionalTile?: ReactNode small?: boolean + selectable?: boolean onLastPhotoVisible?: () => void onAnimationComplete?: () => void } & PhotoSetCategory) { @@ -50,7 +52,7 @@ export default function PhotoGrid({ } = useSelectPhotosState(); return ( -