Skip to content

fix(desktop): prevent Radix Checkbox from swallowing persona row clicks#505

Merged
wesbillman merged 1 commit into
mainfrom
create-team-toggles
May 8, 2026
Merged

fix(desktop): prevent Radix Checkbox from swallowing persona row clicks#505
wesbillman merged 1 commit into
mainfrom
create-team-toggles

Conversation

@matt2e
Copy link
Copy Markdown
Collaborator

@matt2e matt2e commented May 8, 2026

Before

team.toggle.broken.mov

After

team.toggle.fixed.mov

Summary

  • Prevents the Radix Checkbox inside persona rows from intercepting click events that should toggle the row
  • Adds pointer-events-none and tabIndex={-1} to make the checkbox purely visual, letting the parent row handler manage toggle behavior
  • Removes the redundant onCheckedChange handler since the row's onClick already calls togglePersona

🤖 Generated with Claude Code

Radix UI's Checkbox internally calls stopPropagation on click events,
which prevents the parent row's onClick from firing. This made clicking
near the checkbox area unreliable — either nothing happened or a
double-toggle cancelled out.

Make the Checkbox purely presentational by removing onCheckedChange,
adding pointer-events-none so clicks pass through to the row handler,
and tabIndex={-1} to avoid double-focus since the row is already
focusable.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Matt Toohey <contact@matttoohey.com>
@matt2e matt2e requested a review from wesbillman as a code owner May 8, 2026 05:44
@wesbillman wesbillman merged commit ce23abf into main May 8, 2026
15 checks passed
@wesbillman wesbillman deleted the create-team-toggles branch May 8, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants