formsy-react-components v2.0.0-alpha.2 Release Notes
Release Date: 2019-06-18 // almost 5 years ago-
- ⚡️ 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.
Prop name
onChange
is nowchangeCallback
.Prop name
onBlur
is nowblurCallback
.