angular/components

Radio-group's value not updated when the selected radio-button's value changes

Open

#9,808 创建于 2018年2月6日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)TypeScript (6,650 fork)batch import
P4area: material/radiohelp wanted

仓库指标

Star
 (24,044 star)
PR 合并指标
 (平均合并 3天 12小时) (30 天内合并 98 个 PR)

描述

Bug, feature request, or proposal:

Bug

What is the expected behavior?

value input of MatRadioButton to update ngModel of MatRadioGroup when selected.

What is the current behavior?

MatRadioGroup's value updates but not the ngModel.

What are the steps to reproduce?

https://stackblitz.com/edit/radio-binding?file=app%2Fapp.component.html

What is the use-case or motivation for changing an existing behavior?

Custom radio option with input

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular and Material 5.0

Is there anything else we should know?

Calling radioGroup._controlValueAccessorChangeFn($event); on (ngModelChange) is a work around.

贡献者指南