FastGPT/projects/app
Finley Ge ca3053f04d
fix: resolve MCP service modal checkbox double-click event issue (#5790)
Fixed the issue where clicking on checkboxes in the MCP service modal
would trigger double-click events, causing selections to be immediately
deselected.

Root cause:
- Checkbox onChange events were conflicting with parent HStack onClick events
- Both components were trying to handle the same selection logic

Solution:
- Extracted handleItemClick function to avoid code duplication
- Flex onClick: only e.stopPropagation() to prevent event bubbling
- Checkbox onChange: handleItemClick for checkbox-specific interactions
- HStack onClick: handleItemClick for row-level interactions

Benefits:
 Checkbox clicks work properly without double-toggle
 Full row click functionality preserved
 All checkbox hover/focus effects maintained
 Clean DRY code structure with shared logic
 Perfect visual alignment between checkbox and avatar

Changes made to:
- projects/app/src/pageComponents/dashboard/mcp/EditModal.tsx:159-194

🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Happy <yesreply@happy.engineering>
2025-10-20 17:42:49 +08:00
..
data V4.13.0 features (#5693) 2025-09-24 22:40:31 +08:00
public feature: V4.12.2 (#5525) 2025-08-25 19:19:43 +08:00
src fix: resolve MCP service modal checkbox double-click event issue (#5790) 2025-10-20 17:42:49 +08:00
test 4.13.1 features (#5728) 2025-09-30 15:05:43 +08:00
.env.template 4.13.1 features (#5728) 2025-09-30 15:05:43 +08:00
Dockerfile fix: per;fix: invite user un refresh;perf: loginout (#3566) 2025-01-11 17:16:17 +08:00
next-i18next.config.js V4.9.1 feature (#4206) 2025-03-18 14:40:41 +08:00
next.config.js feature: System plugin (#5131) 2025-07-02 18:15:00 +08:00
package.json 4.13.1 features (#5728) 2025-09-30 15:05:43 +08:00
tsconfig.json V4.9.1 feature (#4206) 2025-03-18 14:40:41 +08:00