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