(changes: SimpleChanges)
| 420 | } |
| 421 | |
| 422 | private _updateDisabled(changes: SimpleChanges) { |
| 423 | const disabledValue = changes['isDisabled'].currentValue; |
| 424 | // checking for 0 to avoid breaking change |
| 425 | const isDisabled = disabledValue !== 0 && booleanAttribute(disabledValue); |
| 426 | |
| 427 | resolvedPromise.then(() => { |
| 428 | if (isDisabled && !this.control.disabled) { |
| 429 | this.control.disable(); |
| 430 | } else if (!isDisabled && this.control.disabled) { |
| 431 | this.control.enable(); |
| 432 | } |
| 433 | |
| 434 | this._changeDetectorRef?.markForCheck(); |
| 435 | }); |
| 436 | } |
| 437 | |
| 438 | private _getPath(controlName: string): string[] { |
| 439 | return this._parent ? controlPath(controlName, this._parent) : [controlName]; |
no test coverage detected