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 the bug that radio onChange will be overide by radioGroup onChange #14364

Merged
merged 5 commits into from
Jan 18, 2019

Conversation

ztplz
Copy link
Contributor

@ztplz ztplz commented Jan 16, 2019

First of all, thank you for your contribution! 😄

New feature please send pull request to feature branch, and rest to master branch.
Pull request will be merged after one of collaborators approve.
Please makes sure that these form are filled before submitting your pull request, thank you!

[中文版模板 / Chinese template]

This is a ...

  • New feature
  • Bug fix
  • Site / document update
  • Component style update
  • TypeScript definition update
  • Refactoring
  • Code style optimization
  • Branch merge
  • Other (about what?)

What's the background?

  1. Describe the source of requirement.
  2. Resolve what problem.
    Fix RadioGroup doesn't access Radio's onChange #14353
  3. Related issue link.

API Realization (Optional if not new feature)

  1. Basic thought of solution and other optional proposal.
  2. List final API realization and usage sample.
  3. GIF or snapshot should be provided if includes UI/interactive modification.

What's the effect? (Optional if not new feature)

  1. Does this PR affect user? Which part will be affected?
  2. What will say in changelog?
    Fix the bug that radio onChange will be ovrride by radioGroup onChange
    修复 radio 的 onChange 事件会被 radioGroup 的 onChange 事件覆盖的 bug
  3. Does this PR contains potential break change or other risk?

Changelog description (Optional if not new feature)

  1. English description
  2. Chinese description (optional)

Self Check before Merge

  • 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

Additional Plan? (Optional if not new feature)

If this PR related with other PR or following info. You can type here.

@afc163
Copy link
Member

afc163 commented Jan 16, 2019

Changelog~

@ztplz ztplz requested review from afc163 and zombieJ January 16, 2019 02:52
@netlify
Copy link

netlify bot commented Jan 16, 2019

Deploy preview for ant-design ready!

Built with commit fc685f0

https://deploy-preview-14364--ant-design.netlify.com

@zombieJ
Copy link
Member

zombieJ commented Jan 16, 2019

CI broken, pls check.

@ztplz
Copy link
Contributor Author

ztplz commented Jan 17, 2019

@afc163 @zombieJ Done.

@codecov
Copy link

codecov bot commented Jan 17, 2019

Codecov Report

Merging #14364 into master will decrease coverage by 0.05%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14364      +/-   ##
==========================================
- Coverage   94.36%    94.3%   -0.06%     
==========================================
  Files         325      325              
  Lines        7094     7099       +5     
  Branches     1750     1752       +2     
==========================================
+ Hits         6694     6695       +1     
- Misses        388      392       +4     
  Partials       12       12
Impacted Files Coverage Δ
components/radio/radio.tsx 97.22% <83.33%> (-2.78%) ⬇️
components/_util/wave.tsx 84.84% <0%> (-3.04%) ⬇️

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 dd7181a...64104bb. Read the comment docs.

2 similar comments
@codecov
Copy link

codecov bot commented Jan 17, 2019

Codecov Report

Merging #14364 into master will decrease coverage by 0.05%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14364      +/-   ##
==========================================
- Coverage   94.36%    94.3%   -0.06%     
==========================================
  Files         325      325              
  Lines        7094     7099       +5     
  Branches     1750     1752       +2     
==========================================
+ Hits         6694     6695       +1     
- Misses        388      392       +4     
  Partials       12       12
Impacted Files Coverage Δ
components/radio/radio.tsx 97.22% <83.33%> (-2.78%) ⬇️
components/_util/wave.tsx 84.84% <0%> (-3.04%) ⬇️

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 dd7181a...64104bb. Read the comment docs.

@codecov
Copy link

codecov bot commented Jan 17, 2019

Codecov Report

Merging #14364 into master will decrease coverage by 0.05%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14364      +/-   ##
==========================================
- Coverage   94.36%    94.3%   -0.06%     
==========================================
  Files         325      325              
  Lines        7094     7099       +5     
  Branches     1750     1752       +2     
==========================================
+ Hits         6694     6695       +1     
- Misses        388      392       +4     
  Partials       12       12
Impacted Files Coverage Δ
components/radio/radio.tsx 97.22% <83.33%> (-2.78%) ⬇️
components/_util/wave.tsx 84.84% <0%> (-3.04%) ⬇️

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 dd7181a...64104bb. Read the comment docs.

@codecov
Copy link

codecov bot commented Jan 17, 2019

Codecov Report

Merging #14364 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14364      +/-   ##
==========================================
+ Coverage   94.36%   94.39%   +0.03%     
==========================================
  Files         325      325              
  Lines        7094     7099       +5     
  Branches     1750     1752       +2     
==========================================
+ Hits         6694     6701       +7     
+ Misses        388      386       -2     
  Partials       12       12
Impacted Files Coverage Δ
components/radio/radio.tsx 100% <100%> (ø) ⬆️
components/upload/UploadList.tsx 89.74% <0%> (+1.7%) ⬆️

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 dd7181a...fc685f0. Read the comment docs.

@ztplz
Copy link
Contributor Author

ztplz commented Jan 17, 2019

加个测试

components/radio/radio.tsx Outdated Show resolved Hide resolved
@ztplz
Copy link
Contributor Author

ztplz commented Jan 18, 2019

@zombieJ Done.

@zombieJ zombieJ merged commit 2d5b625 into ant-design:master Jan 18, 2019
@ztplz ztplz deleted the radio branch January 18, 2019 10:10
@chenshuai2144 chenshuai2144 changed the title Fix the bug that radio onchange will be ovrride by radioGroup onchange Fix the bug that radio onChange will be overide by radioGroup onChange Jan 19, 2019
afc163 added a commit that referenced this pull request Jan 22, 2019
* master: (45 commits)
  Add type definitions for Steps.Step (#14468)
  add select check to fix edge wave issue (#14469)
  Fix for Pagination ellipsis misalignment (#14473)
  change sentry id
  ✅ Add sentry in ant.design
  💄 New Sketch resources!
  fix transfer ref (#14441)
  Add onMouseEnter and onMouseLeave for Menu Item (#14454)
  update snapshot (#14467)
  📝 beautify code style in documentation (#14457)
  Updating type: TreeSelectProps.getPopupContainer (#14443)
  change error version
  3.12.4 changelog (#14436)
  Format
  Fix the bug that radio onchange will be ovrride by radioGroup onchange (#14364)
  docs: updated doc for create-react-app
  fix prefixCls of empty go to div (#14404)
  update snapshot (#14406)
  add radius on table-placeholder to fix table small size border clip (#14398)
  fix style of Input.Search with enterButton (#14397)
  ...
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.

RadioGroup doesn't access Radio's onChange
3 participants