You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jkk Would be great if you could shed a bit of light on this.
I can confirm that there is code that deliberately handles this, but not sure how all the pieces fit together yet (rendering/parsing).
Normally, when a checkbox input is unchecked, browsers do not include its name or value in the encoded post data when the form is submitted. The hidden input is a workaround to ensure there's always a name and value for the checkbox submitted. There may be other ways to handle this but that was a method I chose at the time.
Thanks for the really helpful insight on a subtle point!
Thinking of keeping this open for now because I have a vague memory where this caused some unexpected behaviour that was somehow worked around.
When I try to render a checkbox I get an extra hidden input field.
Is this necessary?
The text was updated successfully, but these errors were encountered: