MCPcopy Create free account
hub / github.com/UI5/webcomponents / onItemSelect

Method onItemSelect

packages/main/src/Input.ts:1707–1713  ·  view source on GitHub ↗
(item: IInputSuggestionItem)

Source from the content-addressed store, hash-verified

1705 }
1706
1707 onItemSelect(item: IInputSuggestionItem) {
1708 this.valueBeforeItemSelection = this.value;
1709 this.updateValueOnSelect(item);
1710 this.announceSelectedItem();
1711
1712 this.fireSelectionChange(item, true);
1713 }
1714
1715 get _flattenItems(): Array<IInputSuggestionItem> {
1716 return this.getSlottedNodes<IInputSuggestionItem>("suggestionItems").flatMap(item => {

Callers

nothing calls this directly

Calls 3

updateValueOnSelectMethod · 0.95
announceSelectedItemMethod · 0.95
fireSelectionChangeMethod · 0.95

Tested by

no test coverage detected