formkit
formkit copied to clipboard
Clear radio group only clears value not checked state
Reproduction
https://formkit.link/e2015571c0b011431983d3a84bd4c2fb
Describe the bug
Cannot clear radio group checked state
To reproduce Expected: On click of clear button, value and checked state is cleared.
Unexpected: If i click on clear, the value is cleared, but the checked state is not.
Environment • OS: MacOS 15.2 • Browser: Chrome and Arc • Version: Chrome 132 and Arc 1.79
Further detail, it does clear, but only if a value was selected after the initial value. If the value does not change, then as the OP states setting its value to undefined does not remove the checked state