(changes: SimpleChanges)
| 403 | } |
| 404 | |
| 405 | private _updateDisabled(changes: SimpleChanges) { |
| 406 | const disabledValue = changes['isDisabled'].currentValue; |
| 407 | // checking for 0 to avoid breaking change |
| 408 | const isDisabled = disabledValue !== 0 && booleanAttribute(disabledValue); |
| 409 | |
| 410 | resolvedPromise.then(() => { |
| 411 | if (isDisabled && !this.control.disabled) { |
| 412 | this.control.disable(); |
| 413 | } else if (!isDisabled && this.control.disabled) { |
| 414 | this.control.enable(); |
| 415 | } |
| 416 | |
| 417 | this._changeDetectorRef?.markForCheck(); |
| 418 | }); |
| 419 | } |
| 420 | |
| 421 | private _getPath(controlName: string): string[] { |
| 422 | return this._parent ? controlPath(controlName, this._parent) : [controlName]; |
no test coverage detected