Skip to content

Commit 5993edb

Browse files
committed
fix(radio-group): child buttons value issue
1 parent 9066284 commit 5993edb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

projects/igniteui-angular/src/lib/directives/radio/radio-group.directive.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,11 @@ export class IgxRadioGroupDirective implements ControlValueAccessor, OnDestroy,
464464

465465
effect(() => {
466466
this.initialize();
467-
this.setRadioButtons();
468-
})
467+
468+
Promise.resolve().then(() => {
469+
this.setRadioButtons();
470+
});
471+
});
469472
}
470473

471474
/**
@@ -476,7 +479,7 @@ export class IgxRadioGroupDirective implements ControlValueAccessor, OnDestroy,
476479
// The initial value can possibly be set by NgModel and it is possible that
477480
// the OnInit of the NgModel occurs after the OnInit of this class.
478481
this._isInitialized.set(true);
479-
482+
480483
if (this.ngControl) {
481484
this.ngControl.statusChanges
482485
.pipe(takeUntil(this.destroy$))

0 commit comments

Comments
 (0)