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

Fix bug where OnFocus was only getting called once #3

Closed erikras closed 6 years ago

erikras commented 6 years ago

Fixes #2.

Also migrated from componentWillUpdate to componentDidUpdate in compliance with React.

codecov[bot] commented 6 years ago

Codecov Report

Merging #3 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #3   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           4      4           
  Lines          44     46    +2     
  Branches        5      6    +1     
=====================================
+ Hits           44     46    +2
Impacted Files Coverage Ξ”
src/ExternallyChanged.js 100% <100%> (ΓΈ) :arrow_up:
src/OnBlur.js 100% <100%> (ΓΈ) :arrow_up:
src/OnChange.js 100% <100%> (ΓΈ) :arrow_up:
src/OnFocus.js 100% <100%> (ΓΈ) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data Powered by Codecov. Last update 3e382c8...f6ce59e. Read the comment docs.

erikras commented 6 years ago

Published in v1.0.1.