thumbtack/thumbprint

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.

Hi! Seems simple, can I work on this?

danoc commented

Hi @Amagon96, thanks for reaching out but we already have a PR for it (#590).

@danoc I see, thanks.

So, the way you fix this is just for thumbprint right? The react issue is still open