Skip to content

Commit 425565e

Browse files
authored
Merge branch 'master' into pbozhinov/fix-9917
2 parents 0af93ae + 5fb76b6 commit 425565e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,11 @@ export class IgxCheckboxComponent implements ControlValueAccessor, EditorProvide
454454
this._onTouchedCallback = fn;
455455
}
456456

457+
/** @hidden @internal */
458+
public setDisabledState(isDisabled: boolean) {
459+
this.disabled = isDisabled;
460+
}
461+
457462
/** @hidden @internal */
458463
public getEditElement() {
459464
return this.nativeCheckbox.nativeElement;

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ export class IgxSwitchComponent implements ControlValueAccessor, EditorProvider
341341
this._checked = value;
342342
}
343343
}
344+
344345
/**
345346
* @hidden
346347
* @internal
@@ -375,6 +376,11 @@ export class IgxSwitchComponent implements ControlValueAccessor, EditorProvider
375376
public registerOnTouched(fn: () => void) {
376377
this._onTouchedCallback = fn;
377378
}
379+
380+
/** @hidden @internal */
381+
public setDisabledState(isDisabled: boolean) {
382+
this.disabled = isDisabled;
383+
}
378384
}
379385

380386
export const IGX_SWITCH_REQUIRED_VALIDATOR: Provider = {

0 commit comments

Comments
 (0)