Skip to content

fix(radio): make radio buttons with the same name in different forms work - #10129

Closed
tinayuangao wants to merge 1 commit into
angular:masterfrom
tinayuangao:fix-radio
Closed

tinayuangao wants to merge 1 commit into
angular:masterfrom
tinayuangao:fix-radio

Conversation

@tinayuangao

Copy link
Copy Markdown
Contributor

Fixes #5983

Use native input's value as radio button's value when a radio button is checked.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Feb 23, 2018

@devversion devversion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

Comment thread src/lib/radio/radio.ts
_radioDispatcher.listen((id: string, name: string) => {
if (id != this.id && name == this.name) {
this.checked = false;
this.checked = this._inputElement.nativeElement.checked;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Might want to add a comment that explains the issue?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done. Thanks for review

@devversion devversion added pr: lgtm action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Feb 24, 2018
@andrewseguin andrewseguin added the presubmit failures This PR has failures in Google's internal presubmit process and cannot be immediately merged label Apr 26, 2018
@ngbot

ngbot Bot commented Apr 26, 2018

Copy link
Copy Markdown

Hi @tinayuangao! This PR has merge conflicts due to recent upstream merges.
Please help to unblock it by resolving these conflicts. Thanks!

@josephperrott josephperrott added pr: needs rebase and removed action: merge The PR is ready for merge by the caretaker presubmit failures This PR has failures in Google's internal presubmit process and cannot be immediately merged labels May 1, 2018
@tinayuangao tinayuangao added action: merge The PR is ready for merge by the caretaker and removed pr: needs rebase labels Jun 20, 2018
@mmalerba mmalerba added aaa and removed aaa labels Apr 25, 2019
@andrewseguin andrewseguin added the P4 A relatively minor issue that is not relevant to core functions label May 30, 2019
@mmalerba mmalerba removed the lgtm label Jul 31, 2020
@jelbourn jelbourn closed this Oct 1, 2020
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Nov 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P4 A relatively minor issue that is not relevant to core functions target: patch This PR is targeted for the next patch release

7 participants