reactive-python / reactpy

It's React, but in Python
https://reactpy.dev
MIT License
7.89k stars 317 forks source link

`event["target"]` value for radio input and checkboxes is always `'on'` #1188

Closed Archmonger closed 3 weeks ago

Archmonger commented 10 months ago

Current Situation

The value for any serialized checkbox or radio button is always on when viewed within an event["target"]. This effectively makes them unusable within a form's on_submit event.

Proposed Actions

Fix how we serialize these input fields, and look for any other outliers that might exist.

zx013 commented 9 months ago

If set value xxx in radio input, the value always be xxx. So I can not get which radio input I choose.