Releases: Randagio13/rapid-form
Releases · Randagio13/rapid-form
v3.1.0
What's Changed
🚀 Enhancement
- Add new attribute
numberOfRequiredFields
by @Randagio13 in #50
Full Changelog: v3.0.8...v3.1.0
v3.0.8
What's Changed
🐛 Bug Fix
- Performance degradation by @Randagio13 in #48
Full Changelog: v3.0.7...v3.0.8
v3.0.7
What's Changed
🐛 Bug Fix
- Update values prop even if the element is not required by @Randagio13 in #46
Full Changelog: v3.0.6...v3.0.7
v3.0.6
v3.0.5
What's Changed
🐛 Bug Fix
- Fix remove fields value after resetting the form. by @Randagio13 in #42
Full Changelog: v3.0.4...v3.0.5
v3.0.4
What's Changed
🐛 Bug Fix
- Fix performance degradation after resetting the form by @Randagio13 in #40
Full Changelog: v3.0.3...v3.0.4
v3.0.3
v3.0.2
What's Changed
🐛 Bug Fix
- Fix performance degradation by @Randagio13 in #36
Full Changelog: v3.0.1...v3.0.2
v3.0.1
What's Changed
🐛 Bug Fix
- Fix react import error by @Randagio13 in #33
Full Changelog: v3.0.0...v3.0.1
v3.0.0
What's Changed
💥 Breaking Change
-
How to migrate from v2 to v3 by @Randagio13 in #26
Import the
useRapidForm
hook fromrapid-form
package.- import useRapidForm from 'rapid-form'; + import { useRapidForm } from 'rapid-form';
Replace the
handleSubmit
,reset
, andsubmitValidation
functions with therefValidation
function.- const { validation, handleSubmit, reset, submitValidation } = useRapidForm(); + const { refValidation } = useRapidForm();
Use the
refValidation
function to validate the form fields.- <input name="username" ref={validation} required /> + <form ref={(ref) => refValidation(ref)}> + <input name="username" required /> + </form>
🐛 Bug Fix
- Fix home page button link by @Randagio13 in #29
📝 Documentation
- Update home page by @Randagio13 in #28
Full Changelog: v2.1.0...v3.0.0