Open ividic opened 4 years ago
While it works in the Reakit Checkbox component, using the Space key to toggle the value in Checkbox/Radio doesn't work unless it's wrapped in a FormCheckLabel component. Using htmlFor doesn't work either.
FormCheckLabel
htmlFor
Toggle Checkbox/Radio value by pressing Space
https://codesandbox.io/s/crazy-mcclintock-84ub3 - index.html and radio.html
Hello @ividic, it is a bug. I don't have time to fix it, any PR welcome.
🐛 Bug Report
While it works in the Reakit Checkbox component, using the Space key to toggle the value in Checkbox/Radio doesn't work unless it's wrapped in a
FormCheckLabel
component. UsinghtmlFor
doesn't work either.Expected behavior
Toggle Checkbox/Radio value by pressing Space
Link to repl or repo (highly encouraged)
https://codesandbox.io/s/crazy-mcclintock-84ub3 - index.html and radio.html