()
| 219 | } |
| 220 | |
| 221 | private _onEditFinish() { |
| 222 | this._isEditing = this._editStartPending = false; |
| 223 | this.edited.emit({chip: this, value: this._getEditInput().getValue()}); |
| 224 | |
| 225 | // If the edit input is still focused or focus was returned to the body after it was destroyed, |
| 226 | // return focus to the chip contents. |
| 227 | if ( |
| 228 | this._document.activeElement === this._getEditInput().getNativeElement() || |
| 229 | this._document.activeElement === this._document.body |
| 230 | ) { |
| 231 | this.primaryAction.focus(); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | override _isRippleDisabled(): boolean { |
| 236 | return super._isRippleDisabled() || this._isEditing; |
no test coverage detected