Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture correct radio button value in a form input event #320

Merged
merged 2 commits into from Mar 21, 2022
Merged

Capture correct radio button value in a form input event #320

merged 2 commits into from Mar 21, 2022

Conversation

naturalethic
Copy link

Solution implemented is to return an optional value from the target element, which for all cases except radio buttons is a Some. For radios, only the checked element will return a Some. This prevents the last radio in the group from always overwriting the group value.

@jkelleyrtp
Copy link
Member

Looks good - though I will follow this PR up with some changes that make the same fix for desktop.

@jkelleyrtp jkelleyrtp merged commit 41b7de3 into DioxusLabs:master Mar 21, 2022
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.

None yet

2 participants