MCPcopy
hub / github.com/angular/components / _onEditFinish

Method _onEditFinish

src/material/chips/chip-row.ts:221–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 2

constructorMethod · 0.95
_handleKeydownMethod · 0.95

Calls 4

_getEditInputMethod · 0.95
focusMethod · 0.65
getValueMethod · 0.45
getNativeElementMethod · 0.45

Tested by

no test coverage detected