Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed changed state of AutoForm #765

Merged
merged 2 commits into from
Jul 15, 2020
Merged

Fixed changed state of AutoForm #765

merged 2 commits into from
Jul 15, 2020

Conversation

radekmie
Copy link
Contributor

@radekmie radekmie commented Jul 10, 2020

This change should fix the regression introduced in #739. Due to the removal of modelSync, AutoForm was no longer resolving changed and changedMap correctly, effectively not tracking changed states at all. I've fixed that, added test for that, and fixed other tests, as they were using shared form instance (I've moved that directly to v3 branch).

Once more, thanks to @mvgijssel for #739 (comment)!

@radekmie radekmie added the Type: Bug Bug reports and their fixes label Jul 10, 2020
@radekmie radekmie added this to the v3.0 milestone Jul 10, 2020
@radekmie radekmie requested review from kestarumper and Monteth July 10, 2020 19:40
@codecov
Copy link

codecov bot commented Jul 10, 2020

Codecov Report

Merging #765 into v3 will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##               v3     #765      +/-   ##
==========================================
- Coverage   97.82%   97.79%   -0.03%     
==========================================
  Files         175      175              
  Lines        3398     3398              
  Branches      641      641              
==========================================
- Hits         3324     3323       -1     
  Misses          8        8              
- Partials       66       67       +1     
Impacted Files Coverage Δ
packages/uniforms/src/AutoForm.tsx 97.05% <100.00%> (ø)
packages/uniforms/src/BaseForm.tsx 96.42% <0.00%> (-1.20%) ⬇️

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 a3dffb9...e770070. Read the comment docs.

@radekmie radekmie merged commit f991000 into v3 Jul 15, 2020
@radekmie radekmie deleted the v3-autoform-changed branch July 15, 2020 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug reports and their fixes
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants