(changes: SimpleChanges)
| 430 | } |
| 431 | |
| 432 | private _updateDisabled(changes: SimpleChanges) { |
| 433 | const disabledValue = changes['isDisabled'].currentValue; |
| 434 | // checking for 0 to avoid breaking change |
| 435 | const isDisabled = disabledValue !== 0 && booleanAttribute(disabledValue); |
| 436 | |
| 437 | resolvedPromise.then(() => { |
| 438 | if (isDisabled && !this.control.disabled) { |
| 439 | this.control.disable(); |
| 440 | } else if (!isDisabled && this.control.disabled) { |
| 441 | this.control.enable(); |
| 442 | } |
| 443 | |
| 444 | this._changeDetectorRef?.markForCheck(); |
| 445 | }); |
| 446 | } |
| 447 | |
| 448 | private _getPath(controlName: string): string[] { |
| 449 | return this._parent ? controlPath(controlName, this._parent) : [controlName]; |
no test coverage detected