Skip to content

Commit 0a1cfc7

Browse files
authored
Update README.md
The description leads to misunderstanding about how this decorator works: final-form#8
1 parent b316e06 commit 0a1cfc7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
88

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

1212
---
1313

@@ -98,6 +98,10 @@ const focusOnErrors = createDecorator()
9898

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

101+
### [Focus On Errors With Multiple Forms Example](https://codesandbox.io/embed/react-final-form-focus-on-first-error-hvzhm)
102+
103+
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).
104+
101105
## API
102106

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

0 commit comments

Comments
 (0)