mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
fix(valueAccessors): add disabled state handling
This commit is contained in:
@ -44,4 +44,12 @@ export class SelectValueAccessor implements ControlValueAccessor {
|
|||||||
registerOnTouched(fn: () => void) {
|
registerOnTouched(fn: () => void) {
|
||||||
this.onTouched = fn;
|
this.onTouched = fn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setDisabledState(isDisabled: boolean): void {
|
||||||
|
this.renderer.setProperty(
|
||||||
|
this.element.nativeElement,
|
||||||
|
'disabled',
|
||||||
|
isDisabled
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user