Skip to content

Commit

Permalink
fix: connect disabled state COM-259
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed May 24, 2019
1 parent fc437e4 commit bbe7ba3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/ui/src/lib/io/input/input.component.ts
Expand Up @@ -120,6 +120,7 @@ export class InputComponent extends DynamicSlotComponent implements ControlValue
// console.warn('could not connect control: no instance loaded');
return;
}
this.componentInstance.disabled = this.disabled;
if (this.componentInstance.registerOnChange && this.propagateChange) {
this.componentInstance.registerOnChange(this.propagateChange);
}
Expand Down Expand Up @@ -148,5 +149,8 @@ export class InputComponent extends DynamicSlotComponent implements ControlValue

setDisabledState(isDisabled) {
this.disabled = isDisabled;
if (this.componentInstance) {
this.componentInstance.disabled = isDisabled;
}
}
}

0 comments on commit bbe7ba3

Please sign in to comment.