final-form / react-final-form-listeners

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

Why are these implemented as external listeners rather than in RFF? #21

Closed tstirrat15 closed 3 years ago

tstirrat15 commented 4 years ago

I noticed that onBlur isn't something that you can pass to a Field, and that RFF is passing its own onBlur through to the underlying input instance when I wrap an input.

Then there's this lib, which listens to RFF state to infer whether a field has been focused, rather than tying into the existing lib.

Is there a technical reason for this? Otherwise I'm having a hard time understanding this lib's existence.

abrad45 commented 4 years ago

Pure conjecture, but breaking these out into another library:

erikras commented 3 years ago

Yep. What @abrad45 said.