v0.8.0
- 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.) therefis 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.