Skip to content

v2.0.0-alpha.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@twisty twisty released this 18 Jun 12:10
· 82 commits to master since this 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

  1. Prop name validateOnSubmit is now validateBeforeSubmit.

    validateOnSubmit was confusing, as the form always validates on submit. The new prop name hopefully more
    clearly expresses what this does.

    • If validateBeforeSubmit is true (default) then validation errors for elements are immediately shown.
    • If validateBeforeSubmit is false then validation errors for elements are hidden until a form submission is attempted.
    • Migrate by updating prop name and flipping it's boolean value.
  2. Prop name onChange is now changeCallback.

  3. Prop name onBlur is now blurCallback.