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

Added a way to set an error on an array of fields #92

Merged
merged 1 commit into from
Mar 20, 2018
Merged

Conversation

erikras
Copy link
Member

@erikras erikras commented Mar 20, 2018

You can now set an error for an array of fields.

Example

import { ARRAY_ERROR } from 'final-form'

...

errors.items = []
errors.items[ARRAY_ERROR] = 'You need some items'

@codecov
Copy link

codecov bot commented Mar 20, 2018

Codecov Report

Merging #92 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #92   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          11     11           
  Lines         452    464   +12     
  Branches       96     98    +2     
=====================================
+ Hits          452    464   +12
Impacted Files Coverage Δ
src/publishFieldState.js 100% <100%> (ø) ⬆️
src/FinalForm.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 82bf50c...e5653ce. Read the comment docs.

@erikras erikras merged commit 722ac02 into master Mar 20, 2018
@erikras erikras deleted the array-errors branch March 21, 2018 11:15
@erikras
Copy link
Member Author

erikras commented Mar 21, 2018

Published in v4.4.0.

@lock
Copy link

lock bot commented May 31, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant