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

Method onCommit

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

Source from the content-addressed store, hash-verified

1404 });
1405
1406 onCommit() {
1407 const selected = this.value();
1408 if (selected.length > 0) {
1409 this.searchString.set(selected[0]);
1410 }
1411 this.popupExpanded.set(false);
1412 }
1413
1414 onBlur() {
1415 const flatNodes = this.flattenTreeNodes(this.dataSource());

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected