Skip to content

Commit

Permalink
fix(radio): radio group ngModel doesn't setup initial value (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
tibing-old-email authored and nnixaa committed Oct 1, 2018
1 parent 99acd25 commit 92b6f6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/framework/theme/components/radio/radio-group.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ export class NbRadioGroupComponent implements AfterContentInit, OnDestroy, Contr

writeValue(value: any): void {
this.value = value;

if (typeof value !== 'undefined') {
this.updateValues();
}
}

protected updateNames() {
Expand Down

0 comments on commit 92b6f6b

Please sign in to comment.