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

Method onBlur

src/aria/combobox/combobox.spec.ts:1414–1420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1412 }
1413
1414 onBlur() {
1415 const flatNodes = this.flattenTreeNodes(this.dataSource());
1416 const match = flatNodes.find(n => n.name.toLowerCase() === this.searchString().toLowerCase());
1417 if (match) {
1418 this.value.set([match.name]);
1419 }
1420 }
1421
1422 firstMatch = computed<string | undefined>(() => {
1423 const flatNodes = this.flattenTreeNodes(this.nodes());

Callers

nothing calls this directly

Calls 3

flattenTreeNodesMethod · 0.95
setMethod · 0.80
dataSourceMethod · 0.45

Tested by

no test coverage detected