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 non-string labels (fixes #816). #818

Merged
merged 1 commit into from
Oct 26, 2020
Merged

Conversation

radekmie
Copy link
Contributor

This change fixes a bug reported in #816 as well as adds a broad set of tests for label handling. We should do the same for placeholder, but this will come separately.

@radekmie radekmie added the Type: Bug Bug reports and their fixes label Oct 24, 2020
@radekmie radekmie added this to the v3.0 milestone Oct 24, 2020
@radekmie radekmie requested a review from Monteth October 24, 2020 09:30
@radekmie radekmie linked an issue Oct 24, 2020 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Oct 24, 2020

Codecov Report

Merging #818 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #818      +/-   ##
==========================================
+ Coverage   97.23%   97.26%   +0.02%     
==========================================
  Files         175      175              
  Lines        3439     3439              
  Branches      668      669       +1     
==========================================
+ Hits         3344     3345       +1     
  Misses          8        8              
+ Partials       87       86       -1     
Impacted Files Coverage Δ
packages/uniforms/src/useField.tsx 97.82% <100.00%> (+2.17%) ⬆️

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 ab34011...75aef5c. Read the comment docs.

@ArchiCroc
Copy link
Contributor

This will be a nice addition. I was just troubleshooting this when I tried to pass i18n components for label, placeholder, and extra.

packages/uniforms/src/useField.tsx Show resolved Hide resolved
@radekmie radekmie merged commit cfd362e into master Oct 26, 2020
@radekmie radekmie deleted the fixed-non-string-label branch October 26, 2020 14:38
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.

JSX labels are ignored in v3
3 participants