diff --git a/invokeai/frontend/web/src/features/controlLayers/components/CALayerListItem.tsx b/invokeai/frontend/web/src/features/controlLayers/components/CALayerListItem.tsx index a55c71fad6..440fad05dd 100644 --- a/invokeai/frontend/web/src/features/controlLayers/components/CALayerListItem.tsx +++ b/invokeai/frontend/web/src/features/controlLayers/components/CALayerListItem.tsx @@ -38,7 +38,7 @@ export const CALayerListItem = memo(({ layerId }: Props) => { // Must be capture so that the layer is selected before deleting/resetting/etc dispatch(layerSelected(layerId)); }, [dispatch, layerId]); - const { isOpen, onToggle } = useDisclosure(); + const { isOpen, onToggle } = useDisclosure({ defaultIsOpen: true }); return ( { [layerId] ); const ipAdapterId = useAppSelector(selector); - const { isOpen, onToggle } = useDisclosure(); + const { isOpen, onToggle } = useDisclosure({ defaultIsOpen: true }); return ( diff --git a/invokeai/frontend/web/src/features/controlLayers/components/RGLayerListItem.tsx b/invokeai/frontend/web/src/features/controlLayers/components/RGLayerListItem.tsx index 7c34158edb..f4ff58f5de 100644 --- a/invokeai/frontend/web/src/features/controlLayers/components/RGLayerListItem.tsx +++ b/invokeai/frontend/web/src/features/controlLayers/components/RGLayerListItem.tsx @@ -47,7 +47,7 @@ export const RGLayerListItem = memo(({ layerId }: Props) => { ); const { autoNegative, color, hasPositivePrompt, hasNegativePrompt, hasIPAdapters, isSelected } = useAppSelector(selector); - const { isOpen, onToggle } = useDisclosure(); + const { isOpen, onToggle } = useDisclosure({ defaultIsOpen: true }); const onClick = useCallback(() => { dispatch(layerSelected(layerId)); }, [dispatch, layerId]);