Skip to content

Commit 075e204

Browse files
committed
fix(radio-group): missing setDisabledState
1 parent 1262bd2 commit 075e204

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
142142
public set disabled(newValue: boolean) {
143143
if (this._disabled !== newValue) {
144144
this._disabled = newValue;
145-
this._disableRadioButtons();
145+
this.setDisabledState(newValue);
146146
}
147147
}
148148

@@ -339,6 +339,18 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
339339
this._onChangeCallback = fn;
340340
}
341341

342+
/**
343+
* @hidden
344+
* @internal
345+
*/
346+
public setDisabledState(isDisabled: boolean) {
347+
if (this.radioButtons) {
348+
this.radioButtons.forEach((button) => {
349+
button.disabled = isDisabled;
350+
});
351+
}
352+
}
353+
342354
/**
343355
* Registers a function called when the control is touched.
344356
*
@@ -457,18 +469,6 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
457469
}
458470
}
459471

460-
/**
461-
* @hidden
462-
* @internal
463-
*/
464-
private _disableRadioButtons() {
465-
if (this.radioButtons) {
466-
this.radioButtons.forEach((button) => {
467-
button.disabled = this._disabled;
468-
});
469-
}
470-
}
471-
472472
/**
473473
* @hidden
474474
* @internal

0 commit comments

Comments
 (0)