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

fix: render empty text when 'text === 0' #2348

Merged
merged 1 commit into from Mar 30, 2021
Merged

fix: render empty text when 'text === 0' #2348

merged 1 commit into from Mar 30, 2021

Conversation

jiyingzhi
Copy link
Contributor

对于 Text 和 TextArea,应该只有 undefinednull 被视为空值,fixed #2240

@codecov
Copy link

codecov bot commented Mar 29, 2021

Codecov Report

Merging #2348 (d22d838) into master (cb69b10) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2348   +/-   ##
=======================================
  Coverage   99.14%   99.14%           
=======================================
  Files         169      169           
  Lines        5009     5009           
  Branches     1790     1790           
=======================================
  Hits         4966     4966           
  Misses         42       42           
  Partials        1        1           
Impacted Files Coverage Δ
packages/field/src/components/Text/index.tsx 100.00% <100.00%> (ø)
packages/field/src/components/TextArea/index.tsx 100.00% <100.00%> (ø)

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 cb69b10...d22d838. Read the comment docs.

@chenshuai2144 chenshuai2144 merged commit c680261 into ant-design:master Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛[BUG]ProDescriptions.Item组件,在使用dataIndex字段时,若值为0,页面显示为-号
2 participants