Guest User

Untitled

a guest
Dec 14th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <input type="radio" onChange={this.handleChange.bind(this, 'maintain_licence', 'yes')} checked={maintain_licence.value === 'yes'} id="maintain-licence-yes" value="yes" name="maintain_licence" /><span>Yes</span>
  2.  
  3. handleChange(fieldName, value) {
  4. if(fieldName === 'maintain_licence') {
  5. this.props.fields.maintain_licence.onChange(value);
  6. }
  7. }
  8.  
  9. handleChange(fieldName, value) {
  10. this.props.fields.fieldName.onChange(value);
  11. }
Add Comment
Please, Sign In to add comment