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

Method onCommit

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

Source from the content-addressed store, hash-verified

1453 });
1454
1455 onCommit() {
1456 const selected = this.value();
1457 if (selected.length > 0) {
1458 this.searchString.set(selected[0]);
1459 }
1460 this.popupExpanded.set(false);
1461 }
1462
1463 onBlur() {
1464 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