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

Checkbox internal state #131

Merged
merged 3 commits into from
Sep 10, 2024
Merged

Conversation

cfraz89
Copy link
Contributor

@cfraz89 cfraz89 commented Sep 10, 2024

Keeps checkbox checked value internally in NodeSpecificData, instead of setting the checked attribute on the node. This more closely aligns it with the w3c spec.

In addition, as the checked property in rsx is now interpreted specially instead of being forwarded directly to the attribute, it can now handle boolean values as well as strings, such that checked: checkbox_checked(), rsx now works.

Last of all the 'value' property of formevent now reflects the checked state instead of the value attribute of the checked element, aligning it with dioxus web, and ensuring that FormEvent.checked() is correct.

@nicoburns nicoburns merged commit 0562690 into DioxusLabs:main Sep 10, 2024
8 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.

2 participants