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

Method _emitChipEnd

src/material/chips/chip-input.ts:192–202  ·  view source on GitHub ↗

Checks to see if the (chipEnd) event needs to be emitted.

(event?: KeyboardEvent)

Source from the content-addressed store, hash-verified

190
191 /** Checks to see if the (chipEnd) event needs to be emitted. */
192 _emitChipEnd(event?: KeyboardEvent) {
193 if (!event || (this._isSeparatorKey(event) && !event.repeat)) {
194 this.chipEnd.emit({
195 input: this.inputElement,
196 value: this.inputElement.value,
197 chipInput: this,
198 });
199
200 event?.preventDefault();
201 }
202 }
203
204 _onInput() {
205 // Let chip list know whenever the value changes.

Callers 2

_keydownMethod · 0.95
_blurMethod · 0.95

Calls 1

_isSeparatorKeyMethod · 0.95

Tested by

no test coverage detected