Skip to content

Fix profile modal Continue button not working on dashboard#619

Merged
bokelley merged 1 commit into
mainfrom
bokelley/fix-dashboard-continue
Jan 5, 2026
Merged

Fix profile modal Continue button not working on dashboard#619
bokelley merged 1 commit into
mainfrom
bokelley/fix-dashboard-continue

Conversation

@bokelley

@bokelley bokelley commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix profile modal Continue button not enabling when users select options on mobile/some browsers
  • The issue was that onclick handlers on <label> elements containing radio buttons don't fire reliably due to native label-for-input behavior
  • Added proper change event listeners to radio inputs via initProfileModalListeners() for reliable cross-browser support
  • Refactored code to reduce duplication and removed redundant inline onclick attributes

Changes

  • Added initProfileModalListeners(): Attaches change event listeners to radio buttons, which is more reliable than onclick on labels
  • Refactored for DRY: Used a radioGroups array to eliminate code duplication
  • Removed inline onclick handlers: Labels no longer have onclick attributes since change events handle everything
  • Added CSS fallback: :has(input[type="radio"]:checked) ensures visual styling even if JS state gets out of sync
  • Explicit radio check: selectProfileOption() now explicitly sets radio.checked = true

Test plan

  • Tested with Vibium browser automation
  • Verified clicking radio buttons directly works
  • Verified clicking label text (not radio) works
  • Verified Continue button enables after both selections
  • Verified Continue button calls save function
  • All existing tests pass

🤖 Generated with Claude Code

The profile modal's Continue button wasn't enabling when users selected
options on mobile/some browsers. The issue was that onclick handlers on
<label> elements containing radio buttons don't fire reliably due to
the native label-for-input behavior interfering with the event.

Changes:
- Add proper change event listeners to radio inputs via initProfileModalListeners()
- Refactor to reduce code duplication using a radioGroups array
- Remove redundant inline onclick attributes from labels
- Add CSS :has() fallback for styling when radio is checked
- Explicitly set radio.checked = true in selectProfileOption()

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit fa7d64a into main Jan 5, 2026
6 checks passed
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.

1 participant