Skip to content

v3.0.0

Compare
Choose a tag to compare
@JakobJingleheimer JakobJingleheimer released this 29 Sep 12:10
· 27 commits to main since this release

Breaking changes

  • f013d35 The delta argument passed to Form::onSubmit has been corrected to exclude fields that were read-only, instead of setting their value as null (which should happen only for disabled). Per the specification, read-only fields should not be submitted in the form's payload.
  • cef6db2 The argument passed to Form::onDirty and Form::onPristine have changed from event to true and false respectively. This simplifies consumption with useState(): <Form onDirty={setDirty} onPristine={setDirty}>
  • 03f1196 The library's peer dependency on classname has changed to clsx (which has an identical API, so no code changes should be needed for consumers of form5, merely a change in your own dependency). clsx has a smaller footprint and is more efficient.

New features

  • 5097a9a <Form> automatically aborts the submission immediately when the form is pristine.

Non-breaking bug fixes:

  • 68e93ee Fixed the transition on toggles