()
| 121 | } |
| 122 | |
| 123 | override ngAfterViewInit() { |
| 124 | super.ngAfterViewInit(); |
| 125 | |
| 126 | // Sets _alreadyFocused (ahead of click) when chip already has focus. |
| 127 | this._cleanupMousedown = this._ngZone.runOutsideAngular(() => |
| 128 | this._renderer.listen(this._elementRef.nativeElement, 'mousedown', () => { |
| 129 | this._alreadyFocused = this._hasFocus(); |
| 130 | }), |
| 131 | ); |
| 132 | } |
| 133 | |
| 134 | override ngOnDestroy(): void { |
| 135 | super.ngOnDestroy(); |