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

Method _onBlur

src/material/select/select.ts:1005–1014  ·  view source on GitHub ↗

* Calls the touched callback only if the panel is closed. Otherwise, the trigger will * "blur" to the panel when it opens, causing a false positive.

()

Source from the content-addressed store, hash-verified

1003 * "blur" to the panel when it opens, causing a false positive.
1004 */
1005 _onBlur() {
1006 this._focused = false;
1007 this._keyManager?.cancelTypeahead();
1008
1009 if (!this.disabled && !this.panelOpen) {
1010 this._onTouched();
1011 this._changeDetectorRef.markForCheck();
1012 this.stateChanges.next();
1013 }
1014 }
1015
1016 /** Whether the select has a value. */
1017 get empty(): boolean {

Callers

nothing calls this directly

Calls 4

cancelTypeaheadMethod · 0.80
_onTouchedMethod · 0.80
markForCheckMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected