fix: Agent MCP Tools Checkbox Inactive When Hidden (#8166)

This commit is contained in:
Samuel Path 2025-07-01 16:05:00 +02:00 committed by GitHub
parent 55d63caaf4
commit a648ad3d13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -226,7 +226,7 @@ export default function AgentTool({
}}
className={cn(
'h-4 w-4 rounded border border-gray-300 transition-all duration-200 hover:border-gray-400 dark:border-gray-600 dark:hover:border-gray-500',
isExpanded ? 'opacity-100' : 'opacity-0',
isExpanded ? 'visible' : 'pointer-events-none invisible',
)}
onClick={(e) => e.stopPropagation()}
onKeyDown={(e) => {