final-form / final-form/react-final-form-html5-validation

Why are the `...rest` properties not included in `input`

Open
#10 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
56
Forks
8
PR merge metrics
No merged PRs in 30d

Description

One does not simply do this as usually:

(
return
)/>

It is now necessary to also pass `({input, ...rest})` to ``, but careful, there also is the `meta` object!, so we must first consume it even though we don't need it. `({input, meta, ...rest})`

![image](https://user-images.githubusercontent.com/2313018/53266669-cf00fa00-36e1-11e9-8682-1d04dbb3d87b.png)

I believe that it would make better sense to include all input props inside `input` property. If not, can you please shed some light on it and perhaps better documented in the example here? https://github.com/final-form/react-final-form-html5-validation

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.