Open damianricobelli opened 4 weeks ago
Latest commit: 03c8ac7fe15ce4393bfcef88429e4769f5609fc8
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
stepperize | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 12, 2024 6:12pm |
Just checked it out and the new forms example looks amazing. One minor heads up, the step-titles/buttons seem to be clickable/navigatable-to regardless of an invalid form state.
Just checked it out and the new forms example looks amazing. One minor heads up, the step-titles/buttons seem to be clickable/navigatable-to regardless of an invalid form state.
Very easy to fix, just change the onClick to the following:
onClick={() => {
form.handleSubmit((values) => {
stepper.goTo(step.id);
})();
}}
Description
useStepper
hook to avoid having to do a findIndex if we need this value.Related Issues