Skip to content

Commit e6dde84

Browse files
fix(radio-group): wrong dirty state (#13261)
Co-authored-by: Simeon Simeonoff <[email protected]>
1 parent 9b19329 commit e6dde84

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,3 @@ export class IgxRadioGroupDirective implements AfterContentInit, AfterViewInit,
600600
}
601601
}
602602
}
603-
604-
/**
605-
* @hidden
606-
*/
607-

projects/igniteui-angular/src/lib/radio/radio.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,9 @@ export class IgxRadioComponent implements AfterViewInit, ControlValueAccessor, E
504504
this.value = this.value ?? value;
505505

506506
if (value === this.value) {
507-
this.select();
507+
if (!this.checked) {
508+
this.checked = true;
509+
}
508510
} else {
509511
this.deselect();
510512
}

0 commit comments

Comments
 (0)