Skip to content

馃殌 1.7.5 resetField fix & example app polish

Choose a tag to compare

@amir0ff amir0ff released this 23 May 23:20
· 2 commits to main since this release

What's Changed

Bug fix and example improvements. No breaking API changes to useForm.

  • fix(main): resetField validation: Clearing a field with resetField on a touched form now keeps the field dirty and shows validation errors (e.g. required), matching keyboard backspace/delete behavior.
  • refactor(main): React 19 types: Replaced deprecated FormEvent with SubmitEvent for handleOnSubmit.
  • feat(example): ClearableInput: Added hover/focus 脳 clear buttons on password fields, demonstrating resetField.
  • style(example): dark mode: Submit button uses white primary styling in dark mode (inverted from light mode).
  • docs: Updated HandleOnSubmitType for SubmitEvent.

Full Changelog: 1.7.4...1.7.5