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

Method onCommit

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

Source from the content-addressed store, hash-verified

1411 });
1412
1413 onCommit() {
1414 const selected = this.value();
1415 if (selected.length > 0) {
1416 this.searchString.set(selected[0]);
1417 }
1418 this.popupExpanded.set(false);
1419 }
1420
1421 onBlur() {
1422 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