final-form / react-final-form-listeners

A collection of components to listen to 🏁 React Final Form fields
MIT License
94 stars 20 forks source link

OnFocus only fires once #2

Closed sethomas closed 6 years ago

sethomas commented 6 years ago

OnFocus event is only firing once.

Looking at this line: https://github.com/final-form/react-final-form-listeners/blob/master/src/OnFocus.js#L32

state.previous will never be set back to false.

Sorry for not giving you heaps of info, this seems like an easy enough fix.

LOVING final-form and your react wrappers (currently migrating away from redux forms)

erikras commented 6 years ago

Published fix in v1.0.1.

erikras commented 6 years ago

Don't expect this turn around time on every bug in the future! 😜