Skip to content

v2.2.0

Compare
Choose a tag to compare
@erikras erikras released this 10 Jan 18:36
· 408 commits to master since this release

New Features

  • Checkboxes will now manage lists of values if you provide a value prop. If you do not provide a value prop, checkboxes will manage boolean values as they always have. #90 #104 For example, the following inputs will manage an array of strings:
<Field name="toppings" component="input" type="checkbox" value="onions"/>
<Field name="toppings" component="input" type="checkbox" value="sausage"/>
<Field name="toppings" component="input" type="checkbox" value="pepperoni"/>
  • FormSpy now receives all the good Form API props that Form gets. change, blur, initialize, etc. #101 #105

Bug Fixes

  • Made event parameter optional to handleSubmit for React Native support. #84 #95

Typescript