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

bug: no value when use single radio or checkbox in form #3

Open
rabbitom opened this issue Sep 4, 2021 · 0 comments · May be fixed by #4
Open

bug: no value when use single radio or checkbox in form #3

rabbitom opened this issue Sep 4, 2021 · 0 comments · May be fixed by #4
Labels
bug Something isn't working

Comments

@rabbitom
Copy link
Contributor

rabbitom commented Sep 4, 2021

In formToJSON, when there's only one radio or checkbox for a name(acting as a switch), and if that radio/checkbox is not checked, there would be no such field in the return json object.
So if user turn off a switch when updating a form, it would not work, the field would still be on.

@rabbitom rabbitom changed the title no value when use single radio or checkbox in form bug: no value when use single radio or checkbox in form Sep 4, 2021
@rabbitom rabbitom linked a pull request Sep 4, 2021 that will close this issue
@TechQuery TechQuery added the bug Something isn't working label Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants