Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setErrors function #44

Merged
merged 2 commits into from
Aug 18, 2023
Merged

setErrors function #44

merged 2 commits into from
Aug 18, 2023

Conversation

GRA0007
Copy link
Member

@GRA0007 GRA0007 commented Aug 17, 2023

Adds the ability to manually set or clear errors from a field or the entire form.

setError(fields.image, { code: 'custom', message: 'Server failed to upload' })

// Clear all errors
setError(fields, undefined)

@GRA0007 GRA0007 requested a review from giraugh August 17, 2023 04:31
@GRA0007 GRA0007 self-assigned this Aug 17, 2023
@changeset-bot
Copy link

changeset-bot bot commented Aug 17, 2023

🦋 Changeset detected

Latest commit: 474563b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stevent-team/react-zoom-form Minor

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

Copy link

@Prydeton Prydeton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Prydeton Prydeton self-requested a review August 18, 2023 01:38
@GRA0007 GRA0007 merged commit 2a9c6fa into main Aug 18, 2023
3 checks passed
@GRA0007 GRA0007 deleted the feat/set-errors branch August 18, 2023 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants