formsy-material-ui icon indicating copy to clipboard operation
formsy-material-ui copied to clipboard

FormsyRadioGroup `defaultValue` with 0 does not work

Open asafshen opened this issue 8 years ago • 0 comments

  1. If you set defaultValue prop to a 0 value, the radio does not consider it as the component's value
<FormsyRadioGroup 
                          name="radioTest"
                          defaultSelected={0}
 >
              <FormsyRadio
                value={0}
                label="zero"
              />
              <FormsyRadio
                value={1}
                label="one"
              />
</FormsyRadioGroup>

asafshen avatar Aug 08 '16 07:08 asafshen