Checks to see if the (chipEnd) event needs to be emitted.
(event?: KeyboardEvent)
| 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. |
no test coverage detected