Checkbox HTML includes value attribute even if prop is undefined
danoc opened this issue · 3 comments
danoc commented
React adds a value
attribute (value=""
) to input[type="checkbox"]
even if the value
prop is undefined
. This prevents the default browser behavior of value="on"
when the value
attribute is omitted and causes unexpected bugs if a server endpoint checks for a the checkbox value rather than existence of the checkbox in the form data.
This upstream issue describes this in more detail: facebook/react#17590
Thumbtack employees can also look at IE-545 in JIRA for more context.
Amagon96 commented
Hi! Seems simple, can I work on this?