fddigital-uk / sanity-plugin-visual-options

19 stars 7 forks source link

Radio input changing from uncontrolled to controlled #4

Closed fddigital-uk closed 4 years ago

fddigital-uk commented 4 years ago

Radio input changing from uncontrolled to controlled. This isn't causing any immediate direct issues, however it is throwing a warning within the console when first loaded.

nicktaylor commented 4 years ago

Removed onChange and added onClick, this then also gets called by onClick of the grid item, rather than calling the onChange even separately. Value for radio button also added.