Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

fix(Formbot): Set field value before validating in onChange handler #16

Merged
merged 1 commit into from
Jan 28, 2019

Conversation

kylealwyn
Copy link
Contributor

The previous logic would invalidate the field, losing the scope of the synthetic onChange event handler in the valdiation promise. After validation, Formbot would then set the new values, causing Input cursor to jump to the end.

@codecov-io
Copy link

codecov-io commented Jan 28, 2019

Codecov Report

Merging #16 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #16   +/-   ##
=======================================
  Coverage   74.21%   74.21%           
=======================================
  Files          13       13           
  Lines         159      159           
  Branches       24       24           
=======================================
  Hits          118      118           
  Misses         30       30           
  Partials       11       11

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 23ea486...2e2440e. Read the comment docs.

@kylealwyn kylealwyn merged commit 60a64d1 into master Jan 28, 2019
@kylealwyn kylealwyn deleted the fix/formbot-input branch January 28, 2019 21:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants