final-form / final-form/react-final-form-listeners
OnBlur doesn't work
- 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
Assessment
This issue has not been assessed yet.