MCPcopy Index your code
hub / github.com/UI5/webcomponents / _scrollSelectedItem

Method _scrollSelectedItem

packages/main/src/Select.ts:849–860  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

847 }
848
849 _scrollSelectedItem() {
850 if (this._isPickerOpen) {
851 const itemRef = this._currentlySelectedOption?.getDomRef();
852 if (itemRef) {
853 itemRef.scrollIntoView({
854 behavior: "auto",
855 block: "nearest",
856 inline: "nearest",
857 });
858 }
859 }
860 }
861
862 _handleArrowNavigation(e: KeyboardEvent) {
863 e.preventDefault();

Callers 3

_selectTypedItemMethod · 0.95
_afterOpenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected