MCPcopy Create free account
hub / github.com/angular/components / _blur

Method _blur

src/material/chips/chip-listbox.ts:294–303  ·  view source on GitHub ↗

When blurred, marks the field as touched when focus moved outside the chip listbox.

()

Source from the content-addressed store, hash-verified

292
293 /** When blurred, marks the field as touched when focus moved outside the chip listbox. */
294 _blur() {
295 if (!this.disabled) {
296 // Wait to see if focus moves to an individual chip.
297 setTimeout(() => {
298 if (!this.focused) {
299 this._markAsTouched();
300 }
301 });
302 }
303 }
304
305 _keydown(event: KeyboardEvent) {
306 if (event.keyCode === TAB) {

Callers 1

ngAfterContentInitMethod · 0.95

Calls 1

_markAsTouchedMethod · 0.95

Tested by

no test coverage detected