Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Releases: anubra266/zagf

[email protected]

28 Aug 08:23
14bb2ed
Compare
Choose a tag to compare

Patch Changes

  • 6eec4d5 Thanks
    @anubra266! - Add focusOnError option. For configuring whether to focus on the first
    field with error after submitting

  • 074009e Thanks
    @anubra266! - - Fix change validation

    • Expose values to validate callbacks

[email protected]

28 Aug 06:58
2b7d961
Compare
Choose a tag to compare

Patch Changes

  • e318e19 Thanks
    @anubra266! - First working release!

  • 64bc9a5 Thanks
    @anubra266! - - Support field level validation

    <input
      {...api.getFieldProps("name", {
        validate: (value) => (value.length < 5 ? "Name must have at least 5 letters" : null),
      })}
    />
    • Add validation option to the form machine config. It can be set to submit, blur or change to validate only
      on those events.

[email protected]

21 Jun 23:53
7633648
Compare
Choose a tag to compare

Patch Changes