Radio buttons do not become unchecked when a bound ngModel property is removed #327
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Milestone
Consider the following radio group:
And then the ngModel object changes like so:
Original state:
{accountType: 'J'}
New state:
{}
I would expect the corresponding radio button ('Joint') to be unchecked. However, the 'Joint' radio button remains checked, which does not represent the true state of the control.
As a workaround, I'm able to bind to the
md-radio-checked
class on each button, which removes the checked state of a radio button when the corresponding binding changes to undefined.This is especially important for a redux/ngrx application, in which you would expect radio buttons to become checked/unchecked as you replay recorded actions.
The text was updated successfully, but these errors were encountered: