()
| 445 | private _previousActiveOption: CdkOption<T> | null = null; |
| 446 | |
| 447 | constructor() { |
| 448 | if (this._isBrowser) { |
| 449 | const renderer = inject(Renderer2); |
| 450 | |
| 451 | this._cleanupWindowBlur = this.ngZone.runOutsideAngular(() => { |
| 452 | return renderer.listen('window', 'blur', () => { |
| 453 | if (this.element.contains(document.activeElement) && this._previousActiveOption) { |
| 454 | this._setActiveOption(this._previousActiveOption); |
| 455 | this._previousActiveOption = null; |
| 456 | } |
| 457 | }); |
| 458 | }); |
| 459 | } |
| 460 | } |
| 461 | |
| 462 | ngAfterContentInit() { |
| 463 | if (typeof ngDevMode === 'undefined' || ngDevMode) { |
nothing calls this directly
no test coverage detected