It's very easy for radio buttons to become out of sync with the vdom, as the actual checked value of the underlying DOM node is changed by user input, even if the checked property in the vdom is hard-coded.
I would expect the value of the radio buttons to not change based on user interaction. Rather, they should only be changed by actually changing the value of the checked property. See this React example.
Actual behavior:
Even though the checked values are hard-coded, the user can still change which of the radio buttons is checked.
Bug
It's very easy for radio buttons to become out of sync with the vdom, as the actual
checked
value of the underlying DOM node is changed by user input, even if thechecked
property in the vdom is hard-coded.Package Version: 5.x
Code
CodeSandbox: https://codesandbox.io/s/yv7nz1q3p1
Expected behavior:
I would expect the value of the radio buttons to not change based on user interaction. Rather, they should only be changed by actually changing the value of the
checked
property. See this React example.Actual behavior:
Even though the
checked
values are hard-coded, the user can still change which of the radio buttons is checked.