Skip to content

v0.8.0

Choose a tag to compare

@twisty twisty released this 18 Jun 23:58
· 387 commits to master since this release
  • Support for <optgroup> in <Select /> component (@Reltik)
  • Replaced old-style string refs with new-style callback refs (@shilman, @SachaG)

<optgroup> in the <Select /> Component

See the test file for details.

Component Refs

Refs to the form controls are now generated via callbacks. See The ref String Attribute for more details.

Breaking change: targeting the component's form control via the refs key no longer works. You will need to update your code:

// old
myComponent.refs.element

// new
myComponent.element
  • For components that wrap a single element (<Input />, <Select />, <Textarea /> etc.) the ref is named "element".
  • For components that wrap multiple form elements (<CheckboxGroup />, <RadioGroup />) each form control has a ref named "element-" and then the name of the key for that element, e.g. element-foo.