Skip to content

Commit

Permalink
access to change function from props in FinalField (#8)
Browse files Browse the repository at this point in the history
* access to change function from props in FinalField

* update README.md

* consistent
  • Loading branch information
alirezavalizade authored and egoist committed Dec 19, 2018
1 parent 6637d30 commit f65c6c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -238,6 +238,12 @@ The name of this field.

See [`FieldState.name`](https://github.com/final-form/final-form#name-string)

##### change

Type: `function`

See [`FieldState.change`](https://github.com/final-form/final-form#change-value-any--void)

##### value

Type: `any`.
Expand Down
1 change: 1 addition & 0 deletions src/Field.js
Expand Up @@ -61,6 +61,7 @@ export default {

const children = this.$scopedSlots.default({
events: this.fieldEvents,
change,
value,
name,
meta
Expand Down

0 comments on commit f65c6c1

Please sign in to comment.