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(module:radio): value can not be dynamically update #677

Merged
merged 2 commits into from
Dec 6, 2017

Conversation

hsuanxyz
Copy link
Member

@hsuanxyz hsuanxyz commented Dec 4, 2017

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #668

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[X] No

Other information

}

updateValue(value: any) {
if (this._value === value) {
return;
}
this._value = value;
this.onChange(value);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoid duplicate changes event

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.005%) to 41.71% when pulling 0a5bc9a on HsuanXyz:fix-radio-value into 5e341de on NG-ZORRO:master.

@vthinkxie vthinkxie merged commit bedcf96 into NG-ZORRO:master Dec 6, 2017
@hsuanxyz hsuanxyz deleted the fix-radio-value branch December 6, 2017 11:33
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
close NG-ZORRO#668 

* fix(module:radio): value can not be dynamically update

* refactor(module:radio): use Render2 instead of Render
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.

3 participants