mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
The hidden input with value="false" was rendered before the checkbox, causing request.form.to_dict() to use the hidden input's value instead of the checkbox's "true" value when checked. Fix by rendering the checkbox first, then the hidden fallback input. This ensures that when the checkbox is checked, its "true" value overwrites the hidden input's "false" value in request.form.to_dict(). The hidden input still serves as a fallback to ensure "false" is submitted when the checkbox is unchecked (since unchecked checkboxes don't submit a value).
39 KiB
39 KiB