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

Method onCommit

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

Source from the content-addressed store, hash-verified

1606 });
1607
1608 onCommit() {
1609 const selected = this.value();
1610 if (selected.length > 0) {
1611 this.searchString.set(selected[0]);
1612 }
1613 this.popupExpanded.set(false);
1614 }
1615
1616 onBlur() {
1617 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