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

OnBlur doesn't work

Open
#24 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
95
Forks
21
PR merge metrics
No merged PRs in 30d

Description

### What is the current behavior?

https://codesandbox.io/s/52q597j2p

Try OnBlur event here. It doesnt fire the children function when element loses focus.

`
const WhenFieldChanges = ({ field, becomes, set, to }) => (

{(
// No subscription. We only use Field to get to the change function
{ input: { onChange } }
) => (

{({ form }) => (


{value => {
if (value === becomes) {
onChange(to);
}
}}


{
() => {
console.info("got blurred sdhfghjdsgfhdsgfsdfdsjh")
}
}


)}

)}

);`

It would be nice if u provide a working example.

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.