final-form / final-form/react-final-form

bug report - it happens when i use validateFields option in Field.

Open
#491 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.4k
Forks
497
PR merge metrics
No merged PRs in 30d

Description

version : "react-final-form": "^5.1.0"
"final-form": "^4.13.0",

After the latest update, when i use validateFields option in Field component,
meta.visit is not changing. it's forever.

```
(


{
if (props && props.values && props.values.visiblePw) {
this.setState({
type: 'text'
})
} else {
this.setState({
type: 'password'
})
}
}}/>
{
this.inputFocusHandler();
input.onFocus();
if (meta.valid) {

} else {
this.setState({
removeBtn: false
});
}
}}
onBlur={(e) => {
this.inputBlurHandler();
input.onBlur();

if (meta.valid) {
this.setState({
removeBtn: false
});
} else {
this.setState({
removeBtn: true
});
}
}}
onChange={input.onChange}/>


0}
removeBtn={removeBtn}
leaveAction={this.removeButtonInactive}
onClick={() => {
input.onChange(meta.initial);
this.input.current.value = null;
this.input.current.focus();
}}/>


0} name={input.name} id={this.props.id}/>

{this.props.labelText || InputComponent.defaultProps.labelText}
{/*
meta.visit은 validateField옵션을 쓰면 안 먹힌다..
*/}

{
input.value && meta.error || (meta.submitError && !meta.dirtySinceLastSubmit) && !meta.submitting ? meta.error || meta.submitError : null
}
{
meta.valid && !meta.submitError && ' 사용가능 합니다.'
}




)}/>
```

meta.visit is not changing..it's forever.
it's always false,

if i delete the option, meta.visit is working properly.

is it bug? or what?

and then see this issues.

[https://github.com/final-form/react-final-form/issues/456](https://github.com/final-form/react-final-form/issues/456)
[https://github.com/final-form/react-final-form/issues/403](https://github.com/final-form/react-final-form/issues/403)

do you have any plan about these issues?
i love this awesome plugin.
so i wan't know about plan..
thanks.

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.