Skip to content

fix: Alert message could be nullable - #32057

Merged
afc163 merged 2 commits into
masterfrom
fix-alert-message
Sep 7, 2021
Merged

afc163 merged 2 commits into
masterfrom
fix-alert-message

Conversation

@afc163

@afc163 afc163 commented Sep 7, 2021

Copy link
Copy Markdown
Member

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

close #32047

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English Fix Alert extra dom node when message is undefined.
🇨🇳 Chinese 修复 Alert message 为空时 dom 节点还在的问题。

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@github-actions

github-actions Bot commented Sep 7, 2021 •

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Sep 7, 2021 •

Copy link
Copy Markdown
Contributor

Size Change: +10 B (0%)

Total Size: 915 kB

Filename Size Change
./dist/antd-with-locales.min.js 351 kB +5 B (0%)
./dist/antd.min.js 303 kB +5 B (0%)
ℹ️ View Unchanged
Filename Size
./dist/antd.compact.min.css 64.8 kB
./dist/antd.dark.min.css 66.1 kB
./dist/antd.min.css 65 kB
./dist/antd.variable.min.css 65.5 kB

compressed-size-action

@codecov

codecov Bot commented Sep 7, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #32057 (6586edf) into master (4af66fb) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 6586edf differs from pull request most recent head 4190aad. Consider uploading reports for the commit 4190aad to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master   #32057   +/-   ##
=======================================
  Coverage   99.96%   99.96%           
=======================================
  Files         411      411           
  Lines        7560     7562    +2     
  Branches     2112     2114    +2     
=======================================
+ Hits         7557     7559    +2     
  Misses          3        3           
Impacted Files Coverage Δ
components/alert/index.tsx 100.00% <100.00%> (ø)
components/list/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 4af66fb...4190aad. Read the comment docs.

@afc163
afc163 merged commit 0f47b50 into master Sep 7, 2021
@afc163
afc163 deleted the fix-alert-message branch September 7, 2021 05:07
@zombieJ zombieJ mentioned this pull request Sep 7, 2021
1 of 15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alert 组件message 为空,有description;不需要设置message,但仍然会占据一定空间

1 participant