lundi 25 février 2019

React redux Form checkbox `defaultChecked` not working

<Field
   defaultChecked={true}
   onChange={this.handleFormItemRadio}
   component={'input'}
   type={'checkbox'}
    name="tadmin" />

When the field is initialized, i expect it to be checked but it comes empty yet aim supplying in true value.

poited to number of solutions but am still not able to solve this.




Aucun commentaire:

Enregistrer un commentaire