Skip to content

Commit 78b2049

Browse files
committed
Update spacing
1 parent fb033c8 commit 78b2049

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/radio/radio-group.component.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,9 @@ export class RadioGroup implements OnInit, AfterContentInit, ControlValueAccesso
366366
}
367367

368368
updateFocusableRadio() {
369-
if (this.radios &&
370-
!this.radios.some(radio => radio.checked)) {
371-
369+
if (this.radios && !this.radios.some(radio => radio.checked)) {
372370
this.radios.forEach(radio => radio.needsToBeFocusable = false);
373-
this.radios.toArray()[0].needsToBeFocusable = true;
371+
this.radios.first.needsToBeFocusable = true;
374372
this.radios.forEach(radio => radio.changeDetectorRef.detectChanges());
375373
}
376374
}

0 commit comments

Comments
 (0)