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

Method _setPopoverInitialFocus

packages/main/src/TabContainer.ts:783–788  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

781 }
782
783 _setPopoverInitialFocus() {
784 const selectedTabInOverflow = this._getSelectedTabInOverflow();
785 const tab = selectedTabInOverflow || this._getFirstFocusableItemInOverflow();
786
787 this.responsivePopover!.initialFocus = `${tab.realTabReference._id}-li`;
788 }
789
790 _getSelectedTabInOverflow() {
791 return <TabInOverflow>(<List> this.responsivePopover!.content[0]).items.find(item => {

Callers 1

_showPopoverAtMethod · 0.95

Tested by

no test coverage detected