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

Method _handleTypeAhead

packages/main/src/MultiComboBox.ts:1803–1818  ·  view source on GitHub ↗
(item: IMultiComboBoxItem, filterValue: string)

Source from the content-addressed store, hash-verified

1801 }
1802
1803 _handleTypeAhead(item: IMultiComboBoxItem, filterValue: string) {
1804 if (!item) {
1805 return;
1806 }
1807
1808 const value = item.text;
1809 const innerInput = this._innerInput;
1810
1811 filterValue = filterValue || "";
1812 this.value = value!;
1813
1814 innerInput.value = value!;
1815 innerInput.setSelectionRange(filterValue.length, value!.length);
1816
1817 this._shouldAutocomplete = false;
1818 }
1819
1820 _getFirstMatchingItem(current: string) {
1821 if (!this._getItems().length) {

Callers 1

onBeforeRenderingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected