Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
The description leads to misunderstanding about how this decorator works: final-form#8
  • Loading branch information
ArtyomResh authored May 29, 2019
1 parent b316e06 commit 0a1cfc7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

Decorator for [🏁 Final Form](https://github.com/final-form/final-form) that
will attempt to apply focus to the first field with an error upon an attempted form submission.
will attempt to apply focus to the first field with specific name with an error among all forms upon an attempted form submission.

---

Expand Down Expand Up @@ -98,6 +98,10 @@ const focusOnErrors = createDecorator()

Demonstrates how 🏁 Final Form Focus 🧐 works with [🏁 React Final Form](https://github.com/final-form/react-final-form#-react-final-form).

### [Focus On Errors With Multiple Forms Example](https://codesandbox.io/embed/react-final-form-focus-on-first-error-hvzhm)

Demonstrates how to use `getFormInputs` from 🏁 Final Form Focus 🧐 to works with multiple [🏁 React Final Form](https://github.com/final-form/react-final-form#-react-final-form).

## API

### `createDecorator: (getInputs?: GetInputs, findInput?: FindInput) => Decorator`
Expand Down

0 comments on commit 0a1cfc7

Please sign in to comment.