v2.0.0-alpha.2
Pre-release
Pre-release
- Update to use the official React context API (so we now require React 16.3).
- Removed the
Icon
component, because Bootstrap has dropped support for the Glyphicon font. - Apply a
text-danger
class to the row when there are errors for the element, so the label is given a red colour. - Source is now written in TypeScript.
Breaking changes
-
Prop name
validateOnSubmit
is nowvalidateBeforeSubmit
.validateOnSubmit
was confusing, as the form always validates on submit. The new prop name hopefully more
clearly expresses what this does.- If
validateBeforeSubmit
istrue
(default) then validation errors for elements are immediately shown. - If
validateBeforeSubmit
isfalse
then validation errors for elements are hidden until a form submission is attempted. - Migrate by updating prop name and flipping it's boolean value.
- If
-
Prop name
onChange
is nowchangeCallback
. -
Prop name
onBlur
is nowblurCallback
.