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

Method _afterOpenPopover

packages/main/src/ComboBox.ts:676–689  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

674 }
675
676 _afterOpenPopover() {
677 this._iconPressed = true;
678 this.inner.focus();
679 this.fireDecoratorEvent("open");
680
681 const allItems = this._getItems();
682 const currentItem = allItems.find(item => {
683 return item.selected || item.focused;
684 });
685
686 if (currentItem) {
687 this._scrollToItem(allItems.indexOf(currentItem));
688 }
689 }
690
691 _afterClosePopover() {
692 this._iconPressed = false;

Callers

nothing calls this directly

Calls 3

_getItemsMethod · 0.95
_scrollToItemMethod · 0.95
focusMethod · 0.45

Tested by

no test coverage detected